public void SetGameOver()
 {
     bird.Reset();
     pipes.Objects.Clear();
     frameCounter     = 0;
     score.ScoreValue = 0;
     FlappyBird.GameStateManager.SwitchTo("GameOverState");
 }
Beispiel #2
0
 public void SetGameOver()
 {
     theBird.Reset();
     pipes.Children.Clear();
     frameCounter = 0;
     scoreCount   = 0;
     isGameOver   = false;
     GameEnvironment.SwitchTo((int)States.LOSE);
 }