Exemplo n.º 1
0
    public void OnDestroy()
    {
        OnRelease();

        m_CurProcess = null;
        m_ProcessDic = null;
        Instance     = null;
    }
Exemplo n.º 2
0
    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);
    }