private void OnGameOverNotification(object sender, object args) { _gamePlaying = false; // Show game over screen. _hudManager.ChangeScreen(_hudManager.GameOverUi); }
void OnGameOverNotification(object sender, object args) { gamePlaying = false; // Show game over screen. hudManager.ChangeScreen(hudManager.GameOverUI); }
public MainMenu(InterfaceManager manager) : base(manager) { SelectMenu menu = new SelectMenu("New Game", "Load Game", "Options", "Exit"); menu.Position = new Vector2(); menu.OptionSelected += (option) => { if (option.Equals("New Game", StringComparison.Ordinal)) { InterfaceManager.ChangeScreen("GameOverlay"); } }; AddControl(menu); }