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