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);
            });
        }
示例#3
0
    public void GetLeaderboardsData()
    {
        ITask <IList <Ranking> > task = rankingsClient.GetRankingSummary(true);

        task.AddOnSuccessListener((result) =>
        {
            Debug.Log("[HMS GAMES] GetLeaderboardsData SUCCESS");

            foreach (Ranking ranking in result)
            {
                Debug.Log("[HMS GAMES] Received " + ranking.RankingDisplayName + "data");
            }
        }).AddOnFailureListener((exception) =>
        {
            Debug.Log("[HMS GAMES] GetLeaderboardsData ERROR");
        });
    }