コード例 #1
0
 public Sequencer(IEnumerator <Action> actions, int millisecondDelay, Action callback)
 {
     _delayer           = () => Thread.Sleep(millisecondDelay);
     _asyncTask         = new EditorAsyncTask();
     _actions           = actions;
     _completedCallback = callback;
 }
コード例 #2
0
 public static void ProcessTask(EditorAsyncTask task)
 {
     if (tasks.Count == 0)
     {
         EditorApplication.update += Process;
     }
     tasks.Add(task);
 }