Esempio n. 1
0
    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();
    }