Пример #1
0
        // 游戏退出时使用
        public void Release()
        {
            if (m_IControllerHelper != null)
            {
                m_IControllerHelper = null;
            }
            if (m_switchTargt != null)
            {
                m_switchTargt.Relese();
                m_switchTargt = null;
            }


            if (m_ActiveCtrl != null)
            {
                m_ActiveCtrl = null;
            }

            //if (m_MissionRobot != null)
            //{
            //    m_MissionRobot = null;
            //}
            if (m_CombatRobot != null)
            {
                m_CombatRobot.Stop();
                m_CombatRobot = null;
            }
        }
Пример #2
0
        //private MissionRobot m_MissionRobot = null;
        public ControllerSystem(IClientGlobal clientGlobal)
        {
            m_ClientGlobal = clientGlobal;
            m_ActiveCtrl   = new Controller(m_ClientGlobal);

            m_CombatRobot = new CombatRobot();

            m_switchTargt = new SwitchTarget();

            //m_MissionRobot = new MissionRobot();
        }