示例#1
0
文件: EmBase.cs 项目: heatend/stg
 public void Push(IEnumerator coroutine, Action onFinished)
 {
     Action hook = delegate ()
     {
         OnFuncEnd();
         onFinished();
     };
     var command = new Command(coroutine, hook);
     CommandQueue.Enqueue(command);
 }
示例#2
0
文件: EmBase.cs 项目: heatend/stg
        public void Update()
        {
            if (CommandQueue.Count == 0)
            {
                return;
            }

            if (CurCommand != null)
            {
                return;
            }

            CurCommand = CommandQueue.Dequeue();

            CoroutineExecuter.StartCoroutine(CurCommand.Execute(CoroutineExecuter));
        }
示例#3
0
文件: EmBase.cs 项目: heatend/stg
 void OnFuncEnd()
 {
     CurCommand = null;
 }