protected virtual void StartTask(int index)
 {
     currentTask = null;
     count      += 1;
     currentTask = sonTaskList.ElementAt(index);
     currentTask.OnEnter();
 }
 public void OnEnter()
 {
     EventCenter.AddListener <CEvent>((EGameEvent)taskData.TriggerInterface, OnInterfaceTrigger);
     for (int i = 0; i < taskData.SonTaskList.Count; i++)
     {
         IGuideTask task = new IGuideTask(this, taskData.SonTaskList.ElementAt(i));
         sonTaskList.Add(task);
     }
 }
 public void Clean()
 {
     currentTask = null;
     SetTaskState(TaskState.CloseState);
     EventCenter.RemoveListener <CEvent>((EGameEvent)taskData.TriggerInterface, OnInterfaceTrigger);
 }