Ejemplo n.º 1
0
 public void Trigger()
 {
     if (coinNum > 0)
     {
         Location = new Vector2(Location.X, initialLocation.Y - 5);
         coinNum--;
         coinAnimation[coinNum].StartAnimation();
         CoinSystem.Instance.AddCoin();
         ScoringSystem.AddPointsForCoin(this);
     }
     else
     {
         state.BeTriggered();
     }
 }
Ejemplo n.º 2
0
 public void Trigger()
 {
     state.BeTriggered();
     ScoringSystem.AddPointsForBreakingBlock(this);
     SoundManager.Instance.PlayBrickSmashSound();
 }
Ejemplo n.º 3
0
 public void Trigger()
 {
     state.BeTriggered();
     SoundManager.Instance.PlayBrickBreakSound();
 }