示例#1
0
        public void RequestScore(string leaderboardID, ScoreController.TimeScope timeScope, bool friendsOnly, int start, int end)
        {
                        #if UNITY_IPHONE && API_SCORE_GAMECENTER
            if (Enabled)
            {
                GameCenterLeaderboardTimeScope convertedScope = GameCenterLeaderboardTimeScope.AllTime;

                switch (timeScope)
                {
                case ScoreController.TimeScope.Today:
                    convertedScope = GameCenterLeaderboardTimeScope.Today;
                    break;

                case ScoreController.TimeScope.Week:
                    convertedScope = GameCenterLeaderboardTimeScope.Week;
                    break;

                case ScoreController.TimeScope.AllTime:
                default:
                    convertedScope = GameCenterLeaderboardTimeScope.AllTime;
                    break;
                }

                GameCenterBinding.retrieveScores(friendsOnly, convertedScope, start, end, leaderboardID);
            }
            else
            {
                Login();
            }
                        #endif
        }
示例#2
0
 public void RequestScore(string leaderboardID, ScoreController.TimeScope timeScope, bool friendsOnly, int start, int end)
 {
     if (Wrapper != null)
     {
         Wrapper.RequestScore(leaderboardID, timeScope, friendsOnly, start, end);
     }
 }
 public void RequestScore(string leaderboardID, ScoreController.TimeScope timeScope, bool friendsOnly, int start, int end)
 {
 }