/// <summary> /// 完成任务时的处理函数 /// </summary> public bool FinishTask() { if (currentTask.IsFinishTask()) { if (TaskFinish != null) { TaskFinish(); } currentTask.State = TaskState.Finish; RemoveLinster(); TrunNextTask(); return(true); } else { return(false); } }