예제 #1
0
파일: MenuManager.cs 프로젝트: Xemar5/Pok
    private void ShowLeaderboardsFromMainMenu()
    {
        ScoreQuery query = new ScoreQuery();

        query.username = PlayerPrefs.GetString("PlayerName", "");
        query.score    = PlayerPrefs.GetInt("PlayerScore", 0);
        query.invscore = -query.score;
        query.guid     = string.IsNullOrWhiteSpace(query.username) == true ? "" : FirebaseManager.Instance.UserGuid;
        rankingManager.GetRanking(query);

        ChangeVisibility(startMenuCanvasGroup, false);

        player.CanMove = false;
        StopInform();
        ShowRankings();
    }