public CoroutineService(IEventRoutingService eventRoutingService) { Runtime = new AwcScriptRuntime(); waitUpdatesQueue = Runtime.GetQueue <AwcWaitUpdatesTask>(); waitSecondsQueue = Runtime.GetQueue <AwcWaitSecondsTask>(); waitConditionQueue = Runtime.GetQueue <AwcWaitConditionTask>(); eventRoutingService.Subscribe <INewFrameEvent>(typeof(ICoroutineService), nameof(OnNewFrameEvent), OnNewFrameEvent); }
public AwcWaitSecondsTask(IAwcScriptRuntime runtime, float targetTotalSeconds) { this.runtime = runtime; this.targetTotalSeconds = targetTotalSeconds; }
public AwcWaitUpdatesTask(IAwcScriptRuntime runtime, int targetTotalFrames) { this.runtime = runtime; this.targetTotalFrames = targetTotalFrames; }