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