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 } }
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; } } }