Ejemplo n.º 1
0
        private void OnGameOverNotification(object sender, object args)
        {
            _gamePlaying = false;

            // Show game over screen.
            _hudManager.ChangeScreen(_hudManager.GameOverUi);
        }
Ejemplo n.º 2
0
        void OnGameOverNotification(object sender, object args)
        {
            gamePlaying = false;

            // Show game over screen.
            hudManager.ChangeScreen(hudManager.GameOverUI);
        }
Ejemplo n.º 3
0
        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);
        }