public void RevealAchievement(string achievementId)
        {
            ITask <HuaweiMobileServices.Utils.Void> task = achievementsClient.VisualizeWithResult(achievementId);

            task.AddOnSuccessListener((result) =>
            {
                Debug.Log("[HMS GAMES] RevealAchievement SUCCESS");
                OnRevealAchievementSuccess?.Invoke();
            }).AddOnFailureListener((exception) =>
            {
                Debug.Log("[HMS GAMES] RevealAchievement ERROR");
                OnRevealAchievementFailure?.Invoke(exception);
            });
        }
コード例 #2
0
        public void RevealAchievement(string achievementId)
        {
            ITask <HuaweiMobileServices.Utils.Void> task = achievementsClient.VisualizeWithResult(achievementId);

            task.AddOnSuccessListener((result) =>
            {
                Debug.Log("[HMS GAMES] RevealAchievement SUCCESS");
                OnRevealAchievementSuccess?.Invoke();
            }).AddOnFailureListener((exception) =>
            {
                Debug.LogError("[HMSAchievementsManager]: RevealAchievement failed. CauseMessage: " + exception.WrappedCauseMessage + ", ExceptionMessage: " + exception.WrappedExceptionMessage);
                OnRevealAchievementFailure?.Invoke(exception);
            });
        }