29 lines
574 B
C#
29 lines
574 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using NodeCanvas.Framework;
|
|
using ParadoxNotion.Design;
|
|
using UnityEngine;
|
|
|
|
|
|
namespace NodeCanvas.Tasks.Actions
|
|
{
|
|
[Name("Timer")]
|
|
[Category("Kilosoft/Timer")]
|
|
public class TimerAction : ActionTask
|
|
{
|
|
public BBParameter<float> TimerTime;
|
|
|
|
protected override void OnExecute()
|
|
{
|
|
|
|
}
|
|
|
|
protected override void OnUpdate()
|
|
{
|
|
if (elapsedTime >= TimerTime.value)
|
|
{
|
|
EndAction();
|
|
}
|
|
}
|
|
}
|
|
} |