Example #1
0
        private void ActionInputsInGame(InputLabels input)
        {
            switch (input)
            {
            case InputLabels.MoveLeftPressed:
                move.MoveLeft();
                break;

            case InputLabels.MoveRightPressed:
                move.MoveRight();
                break;

            default:
                break;
            }
        }
        private void ActionInputsInGame(InputLabels input)
        {
            switch (input)
            {
            case InputLabels.MoveLeftPressed:
                move.MoveLeft();
                break;

            case InputLabels.MoveRightPressed:
                move.MoveRight();
                break;

            case InputLabels.JumpPressed:
                jumpButton.Pressed();
                break;

            case InputLabels.StompPressed:
                jumpButton.StompPressed();
                break;

            case InputLabels.MeleePressed:
                shootButton.Pressed();
                break;

            case InputLabels.ShieldPressed:
                break;

            case InputLabels.ShootPressed:
                break;

            case InputLabels.CycleShieldColourPressed:
                break;

            default:
                break;
            }
        }
 public override void Execute(MoveComponent go)
 {
     go.MoveRight();
     base.Execute(go);
 }
Example #4
0
 public void MoveRight()
 {
     moveComponent.MoveRight();
 }