public void Execute() { // take the receiver method of Fire state change if (!Mario.IsFire() && !Mario.IsDied() && Sprint5Main.Coins >= 70) { Mario.MoveFire(); Sprint5Main.Coins -= 70; SoundFactory.Instance.PowerUp(); } }
public void Execute() { // take the receiver method of power state change mario.MoveFire(); }