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();
 }
示例#2
0
    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();
    }
示例#3
0
 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);
 }