public void DisplayLeaderboard()
    {
        standard.Clear();
        standard.LoadScoreLeaderboard(manager.GetLeaderboard(GameMode.standard));

        blitz.Clear();
        blitz.LoadScoreLeaderboard(manager.GetLeaderboard(GameMode.blitz));

        word_rush.Clear();
        word_rush.LoadTimeLeaderboard(manager.GetLeaderboard(GameMode.word_rush));
    }
示例#2
0
    void LoadEndGameUI(GameInfo info)
    {
        lb_ui.Clear();
        lb_manager.GetLeaderboard(info.mode);

        if (info.mode == GameMode.standard)
        {
            score_text.text = info.score + " pts";

            LoadStandardLeaderboard(info);
        }
        else if (info.mode == GameMode.word_rush)
        {
            score_text.text = ((int)info.time_used / 60) + ":" + (info.time_used % 60).ToString("00.00");

            LoadWordRushLeaderboard(info);
        }
        else if (info.mode == GameMode.blitz)
        {
            score_text.text = info.score + " pts";

            LoadBlitzLeaderboard(info);
        }
    }