public void Damage() { context.PowerState = context.GetSmallMarioState(); context.SetCurrentState(MarioState.Small); context.WidthHeight = new Microsoft.Xna.Framework.Vector2(MarioSpriteFactory.SMALL_MARIO_WIDTH, MarioSpriteFactory.SMALL_MARIO_HEIGHT); context.GrowDown(); context.PowerState.Transition(); }
public void ChangeToSmallMario() { context.PowerState = context.GetSmallMarioState(); context.SetCurrentState(MarioState.Small); context.PowerState.Transition(); }