예제 #1
0
 protected virtual void FinishReConnect()
 {
     reConnectTask.FinishEvent -= FinishReConnect;
     reConnectTask              = null;
     SetTaskStart(currentTaskId);
     reConnectTaskId = 0;
 }
예제 #2
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;
        }
예제 #3
0
 void CleanReStartTask()
 {
     if (currentTask != null)
     {
         currentTask.CleanAllTask();
         currentTask.FinishEvent -= FinishCurrentTask;
         currentTask              = null;
     }
     if (reConnectTask != null)
     {
         reConnectTask.CleanAllTask();
         reConnectTask.FinishEvent -= FinishReConnect;
         reConnectTask              = null;
     }
 }