9 public float Time {
get;
set; }
11 private float timeRemaining;
20 return timeRemaining <= 0;
27 public override void Update(
float deltaTime)
29 timeRemaining -= deltaTime;
30 if (timeRemaining < 0.0f) { timeRemaining = 0.0f; }
35 return $
"{ToolBox.GetDebugSymbol(timeRemaining <= 0)} {nameof(WaitAction)} -> (Remaining: {timeRemaining.ColorizeObject()}, Time: {Time.ColorizeObject()})";
Waits for a specific amount of time before continuing the execution of the event.
override void Update(float deltaTime)
WaitAction(ScriptedEvent parentEvent, ContentXElement element)
override bool IsFinished(ref string goTo)
Has the action finished.
override string ToDebugString()
Rich test to display in debugdraw