Ejemplo n.º 1
0
        public override void Enter(StatePowerup previousState)
        {
            base.Enter(previousState);

            this.StateMachine.Mario.SetSheetState(SpriteStates.Sheets.SUPER);
            SoundFactory.PlaySoundEffect(SoundFactory.PowerUp());
        }
Ejemplo n.º 2
0
 public override void ReceiveMushroom()
 {
     SoundFactory.PlaySoundEffect(SoundFactory.PowerUp());
     if (this.PreviousState is StatePowerupNormal)
     {
         this.StateMachine.Mario.SetSheetState(SpriteStates.Sheets.STAR_SUPER);
         this.PreviousState = this.StateMachine.Super;
     }
 }