Пример #1
0
 public override void HandleInput(InputManager input)
 {
     if (input.IsMenuSelect())
     {
         ScreenManager.AddScreen(new BackgroundScreen());
         ScreenManager.AddScreen(new MainMenuScreen());
     }
 }
Пример #2
0
        public override void HandleInput(InputManager input)
        {
            if (input.IsMenuSelect())
            {
                // Raise the accepted event, then exit the message box.
                if (Accepted != null)
                    Accepted(this, new PlayerIndexEventArgs());

                ExitScreen();
            }
            else if (input.IsMenuCancel())
            {
                // Raise the cancelled event, then exit the message box.
                if (Cancelled != null)
                    Cancelled(this, new PlayerIndexEventArgs());

                ExitScreen();
            }
        }