Пример #1
0
    void Save()
    {
        Highscore score = new Highscore(playerName, playerScore);

        if (HighscoreHandler.IsElligibleForHighscore(playerScore))
        {
            HighscoreHandler.Save(score);
        }
    }
Пример #2
0
    private void ShowGameMenu()
    {
        gameOverMenu.SetActive(true);
        float score = GameManager.Instance.Score;

        finalScoreTxt.text = score.ToString();

        if (HighscoreHandler.IsElligibleForHighscore(score))
        {
            highscorePanel.SetActive(true);
            submitButton.SetActive(true);
        }
        else
        {
            highscorePanel.SetActive(false);
        }
    }