Ejemplo n.º 1
0
 private void TransmissionTask(string taskName)
 {
     this.m_PreviousTaskName = this.m_CurrentTask.GetTaskName();
     this.m_CurrentTask.EndTask();
     this.m_CurrentTask = this.m_MapTask.GetTask(taskName);
     if (this.m_CurrentTask != null)
     {
         this.m_CurrentTask.Transmission();
         if (this.m_CurrentTask.taskName != CSceneManager.Instance.GetActiveSceneName())
         {
             StartCoroutine(this.LoadScene(this.m_CurrentTask.taskName));
         }
     }
     else
     {
         Debug.LogError("[TASK ERROR] " + taskName);
     }
     this.m_CurrentTaskName = this.m_CurrentTask.GetTaskName();
 }
Ejemplo n.º 2
0
 public virtual void InitTask()
 {
     this.m_MapTask         = new CMapTask();
     this.m_CurrentTask     = this.m_MapTask.GetFirstTask();
     this.m_CurrentTaskName = this.m_CurrentTask.GetTaskName();
 }