Beispiel #1
0
    public void ToggleDisplay(bool isHighscore)
    {
        this.isHighscore = isHighscore;
        background.SetActive(isHighscore);

        if (isHighscore && uiParent)
        {
            ShowScores();
            uiParent.localPosition = Vector2.down * 1000;
            highscoresManager.DownloadHighscores();
            highscoresManager.DownloadMyHighscore();
        }
        else
        {
            DeleteScores();
        }
    }