コード例 #1
0
 public void ShowLeaderboardUI(string leaderboardId)
 {
     if (leaderboardId != null)
     {
         leaderboardId = MapId(leaderboardId);
     }
     mClient.ShowLeaderboardUI(leaderboardId, LeaderboardTimeSpan.AllTime, null);
 }
コード例 #2
0
        /// <summary>
        /// Shows the standard Google Play Games leaderboard UI for the given
        /// leaderboard.
        /// </summary>
        /// <param name='lbId'>
        /// The ID of the leaderboard to display. This may be a raw
        /// Google Play Games leaderboard ID or an alias configured through a call to
        /// <see cref="AddIdMapping" />.
        /// </param>
        public void ShowLeaderboardUI(string lbId)
        {
            if (lbId != null)
            {
                lbId = MapId(lbId);
            }

            mClient.ShowLeaderboardUI(lbId, null);
        }
コード例 #3
0
 /// <summary>
 /// Shows the standard Google Play Games leaderboards user interface,
 /// which allows the player to browse their leaderboards. If you have
 /// configured a specific leaderboard as the default through a call to
 /// <see cref="SetDefaultLeaderboardForUi" />, the UI will show that
 /// specific leaderboard only. Otherwise, a list of all the leaderboards
 /// will be shown.
 /// </summary>
 public void ShowLeaderboardUI()
 {
     if (!IsAuthenticated())
     {
         Logger.e("ShowLeaderboardUI can only be called after authentication.");
         return;
     }
     Logger.d("ShowLeaderboardUI");
     mClient.ShowLeaderboardUI(MapId(mDefaultLbUi));
 }