Esempio n. 1
0
    void Start()
    {
        retryButton.SetActive(gamestats.isScroreAfterPlay);

        textComp.text = gamestats.GetCurrentScore() + " m";

        if (gamestats.isScroreAfterPlay)
        {
            gamestats.AddHighScore(gamestats.GetCurrentScore());
            StoreScores();
        }

        string text  = "";
        int    place = 1;

        gamestats.GetHighscores().ForEach((int score) =>
        {
            text += place + "# \t" + score + " m\n";
            place++;
        });

        scoreComp.text = text;
    }