protected virtual void FinishReConnect()
 {
     reConnectTask.FinishEvent -= FinishReConnect;
     reConnectTask              = null;
     SetTaskStart(currentTaskId);
     reConnectTaskId = 0;
 }
        public virtual void SetTaskStart(int taskId)
        {
            CTaskManagerData data = ConfigReader.GetManagerTaskInfo(taskId);

            if (data == null)
            {
                return;
            }
            currentTaskId = taskId;
            currentTask   = new GuideTaskManager(data);
            currentTask.SetTaskState(GuideTaskManager.TaskState.EnterState);
            currentTask.SetTaskState(GuideTaskManager.TaskState.CheckState);
            currentTask.FinishEvent += FinishCurrentTask;
        }
 void CleanReStartTask()
 {
     if (currentTask != null)
     {
         currentTask.CleanAllTask();
         currentTask.FinishEvent -= FinishCurrentTask;
         currentTask              = null;
     }
     if (reConnectTask != null)
     {
         reConnectTask.CleanAllTask();
         reConnectTask.FinishEvent -= FinishReConnect;
         reConnectTask              = null;
     }
 }