コード例 #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;
 }