예제 #1
0
 public ActionQueue Wait(float second)
 {
     CoroutineTaskManager.CoroutineTask actionTask = null;
     return(AddAction((act) =>
     {
         CoroutineTaskManager.Instance.WaitSecondTodo(act, second);
     }, () =>
     {
         actionTask.Stop();
     }));
 }
예제 #2
0
 /// <summary>
 /// 添加异步行为
 /// </summary>
 /// <param name="actionCB"></param>
 /// <returns></returns>
 public ActionQueue AddAction(IEnumerator actionCB)
 {
     CoroutineTaskManager.CoroutineTask actionTask = null;
     return(AddAction((act) =>
     {
         Action <bool> callBack = (bo) => { act(); };
         actionTask = CoroutineTaskManager.Instance.AddTask(actionCB, callBack);
     }, () =>
     {
         actionTask.Stop();
     }));
 }