예제 #1
0
        /// <summary>
        /// Uploads a score change to the indicated leaderboard
        /// </summary>
        /// <param name="leaderboard">The board to upload the score for</param>
        /// <param name="score">The score to upload</param>
        /// <param name="method">The upload method</param>
        public static void _UploadLeaderboardScore(SteamworksLeaderboardData leaderboard, int score, ELeaderboardUploadScoreMethod method)
        {
            if (Instance == null)
            {
                return;
            }

            Instance.UploadLeaderboardScore(leaderboard, score, method);
        }
예제 #2
0
 /// <summary>
 /// Uploads a score change to the indicated leaderboard
 /// </summary>
 /// <param name="leaderboard">The board to upload the score for</param>
 /// <param name="score">The score to upload</param>
 /// <param name="method">The upload method</param>
 public void UploadLeaderboardScore(SteamworksLeaderboardData leaderboard, int score, ELeaderboardUploadScoreMethod method)
 {
     if (leaderboard != null)
     {
         leaderboard.UploadScore(score, method);
     }
     else
     {
         Debug.LogError("[SteamworksLeaderboardManager.UploadLeaderboardScore] Leaderboard is null, no score will be uploaded.");
     }
 }