public void GetLeaderboardData(string leaderboardId) { ITask <Ranking> task = rankingsClient.GetRankingSummary(leaderboardId, true); task.AddOnSuccessListener((result) => { Debug.Log("[HMS GAMES] GetLeaderboardsData SUCCESS"); OnGetLeaderboardDataSuccess?.Invoke(result); }).AddOnFailureListener((exception) => { Debug.Log("[HMS GAMES] GetLeaderboardsData ERROR"); OnGetLeaderboardDataFailure?.Invoke(exception); }); }
public void GetLeaderboardData(string leaderboardId) { ITask <Ranking> task = rankingsClient.GetRankingSummary(leaderboardId, true); task.AddOnSuccessListener((result) => { Debug.Log("[HMSLeaderboardManager] GetLeaderboardsData SUCCESS"); OnGetLeaderboardDataSuccess?.Invoke(result); }).AddOnFailureListener((exception) => { Debug.LogError("[HMSLeaderboardManager]: GetLeaderboardData failed. CauseMessage: " + exception.WrappedCauseMessage + ", ExceptionMessage: " + exception.WrappedExceptionMessage); OnGetLeaderboardDataFailure?.Invoke(exception); }); }