public ActionQueue Wait(float second) { CoroutineTaskManager.CoroutineTask actionTask = null; return(AddAction((act) => { CoroutineTaskManager.Instance.WaitSecondTodo(act, second); }, () => { actionTask.Stop(); })); }
/// <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(); })); }