コード例 #1
0
 public void SwitchState(CoinState State)
 {
     Exit();
     State.Enter();
 }
コード例 #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;
 }