示例#1
0
 private void TaskFinshed(CoroutineTask task, bool IsFinsh)
 {
     if (CoroutineTasks.Contains(task))
     {
         CoroutineTasks.Remove(task);
     }
 }
示例#2
0
        public CoroutineTask StartCoroutine(IEnumerator coroutine)
        {
            CoroutineTask task = CoroutineModel.Instance.StartCoroutineTask(coroutine);

            task.Finished += TaskFinshed;
            CoroutineTasks.Add(task);
            return(task);
        }
示例#3
0
        public CoroutineTask StartCoroutine(IEnumerator coroutine)
        {
            CoroutineTask task = new CoroutineTask(coroutine);

            task.Finished += TaskFinished;
            AllTask.Add(task);
            MyCentorl.StartTask(task);
            return(task);
        }
示例#4
0
 /// <summary>
 ///  任务完成通知
 /// </summary>
 public void TaskFinished(CoroutineTask Task, bool IsFinish)
 {
     AllTask.Remove(Task);
 }
示例#5
0
 public void StartTask(CoroutineTask Task)
 {
     Manager_ManagerModel.Instance.StartCoroutine(Task.CallWrapper());
 }
示例#6
0
 public void StopCoroutine(CoroutineTask task)
 {
     task.Stop();
 }