public override void Resume() { if (restart_on_resume) { temporal_event.Restart(); } else { temporal_event.Start(); } }
static public void StartOrStopClear(this TemporalEvent item, bool run) { if (run) { item.Start(); } else { item.StopClear(); } }
public override bool IsSatisfied() { if (predicate()) { temporal_event.Start(); } else { temporal_event.StopClear(); } if (temporal_event.IsTimeOver()) { return(true); } return(false); }
protected override void StartFulfill() { temporal_event.Start(); }
static public bool Repeat(this TemporalEvent item) { item.Start(); return(item.TriggerRestart()); }
static public bool Fire(this TemporalEvent item) { item.Start(); return(item.TriggerStopClear()); }
static public void Restart(this TemporalEvent item) { item.StopClear(); item.Start(); }