示例#1
0
    //Adds a new highscore
    public void AddNewHighscore(string name, int score)
    {
        StartCoroutine(UploadScore(name, score));
        Score[] blankList = new Score[0];
        highscoresDisplay.OnHighScoresDownloaded(blankList);

        //Slight pause to give the database server time to submit the score before updating the leaderboard
        Thread.Sleep(100);

        DownloadHighScores();
    }