示例#1
0
        public void Enable()
        {
            m_fpsManager.RestorePreviousState();
            m_ramManager.RestorePreviousState();
            m_audioManager.RestorePreviousState();
            m_advancedData.RestorePreviousState();

            m_active = true;
        }
示例#2
0
        public void ToggleActive()
        {
            m_active = !m_active;

            if (m_active)
            {
                m_fpsManager.RestorePreviousState();
                m_ramManager.RestorePreviousState();
                m_audioManager.RestorePreviousState();
                m_advancedData.RestorePreviousState();
            }
            else
            {
                m_fpsManager.SetState(ModuleState.OFF);
                m_ramManager.SetState(ModuleState.OFF);
                m_audioManager.SetState(ModuleState.OFF);
                m_advancedData.SetState(ModuleState.OFF);
            }
        }