public void ChangeProcess(Define.EMGameProcess p_Process) { if (m_ProcessDic.ContainsKey((int)p_Process) == false) { Debug.Log(string.Format("[ChangeProcess] this process ({0}) is not found!", p_Process.ToString())); return; } if (m_CurProcess != null) { m_CurProcess.OnExit(m_DataMgr); } m_CurProcess = m_ProcessDic [(int)m_DataMgr.SetProcess(p_Process)]; m_CurProcess.OnEnter(m_DataMgr); }
public Define.EMGameProcess SetProcess(Define.EMGameProcess p_ProcessState) { m_ProcessState = (int)p_ProcessState; return(GetProcess()); }