public void ShowGameOverMenu(GameOverScreenReferences gameOverScreenReference) { GameController.Instance.IsUIOpen = true; gameOverScreenRef = gameOverScreenReference; gameOverScreenRef.gameObject.SetActive(true); gameOverScreenRef.score.text = GameModel.Instance.Score.ToString(); gameOverScreenRef.highestScore.text = GameModel.Instance.Score.ToString(); }
public void ShowGameOverScreen(GameOverScreenReferences gameOverScreenReferences) { GameController.Instance.IsUIOpen = true; gameOverScreenRef = gameOverScreenReferences; gameOverScreenRef.gameObject.SetActive(true); ToggleMusicButton(); gameOverScreenRef.currentScore.text = GameController.Instance.UpdateScoreLabel(); gameOverScreenRef.bestScore.text = "BEST " + GameModel.Instance.BestScore.ToString(); }
public void ShowGameOverScreen(GameOverScreenReferences gameOverScreenReferences) { gameOverScreenRef = gameOverScreenReferences; gameOverScreenRef.playerScoreLabel.gameObject.SetActive(true); gameOverScreenRef.bestScore.gameObject.SetActive(true); gameOverScreenRef.gameCountLabel.gameObject.SetActive(true); UpdateScore(); UpdateBestScore(); UpdateGameCount(); gameOverScreenRef.gameObject.SetActive(true); }