public void SwitchState(CoinState State) { Exit(); State.Enter(); }
public Coin(Game1 game, float X, float Y) : base(game, X, Y, 10) { ActiveState = new CoinActiveState(this); CollectedState = new CoinCollectedState(this); State = ActiveState; }