first commit
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
using NodeCanvas.Framework;
|
||||
using ParadoxNotion;
|
||||
using ParadoxNotion.Design;
|
||||
|
||||
|
||||
namespace NodeCanvas.Tasks.Actions
|
||||
{
|
||||
|
||||
[Category("✫ Utility")]
|
||||
public class Wait : ActionTask
|
||||
{
|
||||
|
||||
public BBParameter<float> waitTime = 1f;
|
||||
public CompactStatus finishStatus = CompactStatus.Success;
|
||||
|
||||
protected override string info {
|
||||
get { return string.Format("Wait {0} sec.", waitTime); }
|
||||
}
|
||||
|
||||
protected override void OnUpdate() {
|
||||
if ( elapsedTime >= waitTime.value ) {
|
||||
EndAction(finishStatus == CompactStatus.Success ? true : false);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user