示例#1
0
    public void formatScores()
    {
        repeats = 0;
        List <dreamloLeaderBoard.Score> scoreList02 = dl.ToListHighToLow(-2);

        lvl02Text.text = formatList(scoreList02, 1);

        List <dreamloLeaderBoard.Score> scoreList01 = dl.ToListHighToLow(-1);

        lvl01Text.text = formatList(scoreList01, 1);

        List <dreamloLeaderBoard.Score> scoreList0 = dl.ToListHighToLow(0);

        lvl0Text.text = formatList(scoreList0, 0);

        List <dreamloLeaderBoard.Score> scoreList1 = dl.ToListHighToLow(1);

        lvl1Text.text = formatList(scoreList1, 0);

        List <dreamloLeaderBoard.Score> scoreList2 = dl.ToListHighToLow(2);

        lvl2Text.text = formatList(scoreList2, 0);

        List <dreamloLeaderBoard.Score> scoreList3 = dl.ToListHighToLow(3);

        lvl3Text.text = formatList(scoreList3, 0);

        List <dreamloLeaderBoard.Score> scoreList4 = dl.ToListHighToLow(4);

        lvl4Text.text = formatList(scoreList4, 0);

        List <dreamloLeaderBoard.Score> scoreList5 = dl.ToListHighToLow(5);

        lvl5Text.text = formatList(scoreList5, 0);

        setTexts();
        if (GetScoreOrRefresh == 0)
        {
            checkDisplay();
            outputText.text = "";
        }
        else
        {
            GetScoreOrRefresh = 0;
            if (repeats > 0)
            {
                toggleSubmitTrue();
                outputText.text = "Name Taken";
            }
            else
            {
                outputText.text = "Uploading...";
                dl.DeletePrevious(PlayerPrefs.GetString("YourName", "No Name"));
            }
        }
    }