Ejemplo n.º 1
0
        /// <summary>
        /// stop the game
        /// </summary>
        public void Stop()
        {
            MonoHelper.RemoveFixedUpdateListener(FixedUpdate);

            GameInput.Release();

            GameManager.Instance.ReleaseGame();

            onGameEnd       = null;
            onMainPlayerDie = null;
            m_context       = null;
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 停止游戏
        /// </summary>
        public void Stop()
        {
            Debuger.Log(LOG_TAG, "StopGame()");

            GameManager.Instance.ReleaseGame();

            MonoHelper.RemoveFixedUpdateListener(FixedUpdate);
            GameInput.Release();

            if (m_mgrFSP != null)
            {
                m_mgrFSP.Stop();
                m_mgrFSP = null;
            }

            onMainPlayerDie = null;
            onGameEnd       = null;
            m_context       = null;
        }