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