Ejemplo n.º 1
0
        private void CheckshouldLoadTopScores()
        {
            if (shouldLoadMyScores)
            {
                foreach (LeaderboardInfo li in leaderboardInfos)
                {
#if UNITY_IOS || UNITY_TVOS
                    GameCenterBinding.retrieveScoresForPlayerIds(new string[1] {
                        GameCenterBinding.playerIdentifier()
                    }, li.leaderboardId);
#elif UNITY_ANDROID && !CHS
                    PlayGameServices.loadCurrentPlayerLeaderboardScore(li.leaderboardId, GPGLeaderboardTimeScope.AllTime, false);
#endif
                }
            }

#if UNITY_ANDROID
            CheckOfflineHighScores();
#endif

            if (shouldLoadTopScores)
            {
                DownloadAllLeaderboardTopScores(TimeScope.AllTime);
            }
        }