public override void Enter(StatePowerup previousState) { base.Enter(previousState); this.StateMachine.Mario.SetSheetState(SpriteStates.Sheets.SUPER); SoundFactory.PlaySoundEffect(SoundFactory.PowerUp()); }
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; } }