public void Execute() { // take the receiver method of Super state change if (Sprint5Main.Coins >= 50 && Mario.GetPower == MarioState.PowerType.Standard) { Mario.MoveSuper(); Sprint5Main.Coins -= 50; SoundFactory.Instance.PowerUp(); } }
public void Execute() { // take the receiver method of power state change mario.MoveSuper(); }