예제 #1
0
 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);
 }
예제 #2
0
 public AwcWaitSecondsTask(IAwcScriptRuntime runtime, float targetTotalSeconds)
 {
     this.runtime            = runtime;
     this.targetTotalSeconds = targetTotalSeconds;
 }
예제 #3
0
 public AwcWaitUpdatesTask(IAwcScriptRuntime runtime, int targetTotalFrames)
 {
     this.runtime           = runtime;
     this.targetTotalFrames = targetTotalFrames;
 }