Esempio n. 1
0
        public void OnMainMenuCommand(MainMenuCommandEvent e)
        {
            if (!e.Handled)
            {
                Log.Debug(string.Format("GameScene.OnMainMenuCommand({0})", e));

                // TODO: lower vol/freq using filter when menus are open
            }
        }
Esempio n. 2
0
        public void OnMainMenuCommand(MainMenuCommandEvent e)
        {
            if (!e.Handled)
            {
                Log.Debug(string.Format("GameScene.OnMainMenuCommand({0})", e));

                // MenuCommand is a toggle
                if (State == MenuState.Closed)
                {
                    State = MenuState.Open;
                }
                else
                {
                    State = MenuState.Closed;
                }
            }
        }