Beispiel #1
0
        public override void ActionStarted(PlayerIndex pi, BunnyLand.Controllers.PlayerAction action)
        {
            switch (action)
            {
            case PlayerAction.AimUp:
                Menu.DecrementSelectedIndex();
                break;

            case PlayerAction.AimDown:
                Menu.IncrementSelectedIndex();
                break;

            case PlayerAction.Jump:
                ActivateMenuItem();
                break;

            case PlayerAction.Accept:
                ActivateMenuItem();
                break;

            case PlayerAction.Cancel:
                switch (menuState)
                {
                case MenuState.MainMenu:
                    game.Exit();
                    break;

                case MenuState.SettingsMenu:
                    setMenuState(MenuState.MainMenu);
                    break;

                case MenuState.GameConfigMenu:
                    setMenuState(MenuState.MainMenu);
                    break;

                case MenuState.PauseMenu:
                    game.GoToGameplay();
                    break;
                }
                break;
            }
        }
Beispiel #2
0
 public override void ActionContinued(PlayerIndex pi, BunnyLand.Controllers.PlayerAction action)
 {
     // TODO: Implement method
 }