Esempio n. 1
0
 public void Push(IEnumerator coroutine, Action onFinished)
 {
     Action hook = delegate ()
     {
         OnFuncEnd();
         onFinished();
     };
     var command = new Command(coroutine, hook);
     CommandQueue.Enqueue(command);
 }
Esempio n. 2
0
        public void Update()
        {
            if (CommandQueue.Count == 0)
            {
                return;
            }

            if (CurCommand != null)
            {
                return;
            }

            CurCommand = CommandQueue.Dequeue();

            CoroutineExecuter.StartCoroutine(CurCommand.Execute(CoroutineExecuter));
        }
Esempio n. 3
0
 void OnFuncEnd()
 {
     CurCommand = null;
 }