示例#1
0
        /// <summary>
        /// Report a score to game server, using platform specific id.
        /// </summary>
        /// <param name="_leaderboardID">A string used to identify the leaderboard in the current platform.</param>
        /// <param name="_score">The score earned by the local user.</param>
        /// <param name="_onCompletion">Callback that will be called after operation is completed.</param>
        public void ReportScoreWithID(string _leaderboardID, long _score, Score.ReportScoreCompletion _onCompletion)
        {
            string _leaderboardGID = GameServicesUtils.GetLeaderboardGID(_leaderboardID);

            // Invoke handler
            ReportScore(_leaderboardGID, _leaderboardID, _score, _onCompletion);
        }
示例#2
0
        /// <summary>
        /// Creates a new instance of leaderboard object, using platform specific id.
        /// </summary>
        /// <param name="_leaderboardID">A string used to identify the leaderboard in the current platform.</param>
        public Leaderboard CreateLeaderboardWithID(string _leaderboardID)
        {
            string _leaderboardGID = GameServicesUtils.GetLeaderboardGID(_leaderboardID);

            return(CreateLeaderboard(_leaderboardGID, _leaderboardID));
        }