public void ShowLeaderBoard(string boardId = "") { if (!IsAuthenticated()) { Debug.Log(TAG + ": SendScore failed! User is not authenticated! Trying to login..."); AuthenticateUser(success => { if (success) { _rankingClient.ShowTotalRankings(() => { Debug.Log(TAG + ": User is authenticated! Rankinsg are showed!"); }, (exception) => { Debug.Log(TAG + ": ShowLeaderboards ERROR - " + exception.WrappedExceptionMessage); }); } else { Debug.Log(TAG + ": ShowLeaderboards connection is failed!"); } }); } else { _rankingClient.ShowTotalRankings(() => { Debug.Log(TAG + ": User is authenticated! Rankinsg are showed!"); }, (exception) => { Debug.Log(TAG + ": ShowLeaderboards ERROR - " + exception.WrappedExceptionMessage); }); } }
public void ShowLeaderboards() { rankingsClient.ShowTotalRankings(() => { Debug.Log("[HMS GAMES] ShowLeaderboards SUCCESS"); }, (exception) => { Debug.Log("[HMS GAMES] ShowLeaderboards ERROR"); }); }
public void ShowLeaderboards() { rankingsClient.ShowTotalRankings(() => { Debug.Log("[HMS GAMES] ShowLeaderboards SUCCESS"); OnShowLeaderboardsSuccess?.Invoke(); }, (exception) => { Debug.Log("[HMS GAMES] ShowLeaderboards ERROR"); OnShowLeaderboardsFailure?.Invoke(exception); }); }
public void ShowLeaderboards() { rankingsClient.ShowTotalRankings(() => { Debug.Log("[HMSLeaderboardManager] ShowLeaderboards SUCCESS"); OnShowLeaderboardsSuccess?.Invoke(); }, (exception) => { Debug.LogError("[HMSLeaderboardManager]: ShowLeaderboards failed. CauseMessage: " + exception.WrappedCauseMessage + ", ExceptionMessage: " + exception.WrappedExceptionMessage); OnShowLeaderboardsFailure?.Invoke(exception); }); }