Beispiel #1
0
    void getStats()
    {
        int    deaths      = levelStats.GetNumDeath();
        int    playerScore = CalculateScore(deaths, levelStats.GetTime());
        string timeString  = levelStats.GetTimeText();

        death.text = "Deaths: " + deaths.ToString();
        time.text  = "Time: " + levelStats.GetTimeText();
        score.text = "Score: " + playerScore.ToString();
        rank.text  = "Rank: " + CalculateRank(playerScore, timeString).ToString();
        win.text   = "You won " + gameSettings.ReturnPlayerName() + "!";
    }