public void GetAchievementsList() { ITask <IList <Achievement> > task = achievementsClient.GetAchievementList(true); task.AddOnSuccessListener((result) => { Debug.Log("[HMS GAMES] GetAchievementsList SUCCESS"); OnGetAchievementsListSuccess?.Invoke(result); }).AddOnFailureListener((exception) => { Debug.Log("[HMS GAMES] GetAchievementsList ERROR"); OnGetAchievementsListFailure?.Invoke(exception); }); }
public void GetAchievementsList() { ITask <IList <Achievement> > task = achievementsClient.GetAchievementList(true); task.AddOnSuccessListener((result) => { Debug.Log("[HMS GAMES] GetAchievementsList SUCCESS"); OnGetAchievementsListSuccess?.Invoke(result); }).AddOnFailureListener((exception) => { Debug.LogError("[HMSAchievementsManager]: GetAchievementsList failed. CauseMessage: " + exception.WrappedCauseMessage + ", ExceptionMessage: " + exception.WrappedExceptionMessage); OnGetAchievementsListFailure?.Invoke(exception); }); }