Exemplo n.º 1
0
    private void Awake()
    {
        Highscores.Load();
        string scores = Highscores.GetScoresString();

        if (string.IsNullOrEmpty(scores))
        {
            scoresText.gameObject.SetActive(false);
            controlsUI.SetActive(true);
        }
        else
        {
            controlsUI.SetActive(false);
            scoresText.gameObject.SetActive(true);

            scoresText.text = scores;
        }
    }