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