public void ShowAchievements() { if (HMSAccountManager.Instance.HuaweiId != null) { IAchievementsClient achievementsClient = Games.GetAchievementsClient(); achievementsClient.ShowAchievementList(() => { Debug.Log("[HMS GAMES:] ShowAchievements SUCCESS"); OnShowAchievementsSuccess?.Invoke(); }, (exception) => { Debug.Log("[HMS GAMES:] ShowAchievements ERROR"); OnShowAchievementsFailure?.Invoke(exception); }); } }
public void ShowAchievements() { if (HMSAccountManager.Instance.HuaweiId != null) { IAchievementsClient achievementsClient = Games.GetAchievementsClient(); achievementsClient.ShowAchievementList(() => { Debug.Log("[HMS GAMES:] ShowAchievements SUCCESS"); OnShowAchievementsSuccess?.Invoke(); }, (exception) => { Debug.LogError("[HMSAchievementsManager]: Show Achievements failed. CauseMessage: " + exception.WrappedCauseMessage + ", ExceptionMessage: " + exception.WrappedExceptionMessage); OnShowAchievementsFailure?.Invoke(exception); }); } }