public void IncreaseStepAchievement(string achievementId, int stepIncrement) { ITask <bool> task = achievementsClient.GrowWithResult(achievementId, stepIncrement); task.AddOnSuccessListener((result) => { Debug.Log("[HMS GAMES] IncreaseStepAchievement SUCCESS" + result); OnIncreaseStepAchievementSuccess?.Invoke(); }).AddOnFailureListener((exception) => { Debug.Log("[HMS GAMES] IncreaseStepAchievement ERROR"); OnIncreaseStepAchievementFailure?.Invoke(exception); }); }
public void IncreaseStepAchievement(string achievementId, int stepIncrement) { ITask <bool> task = achievementsClient.GrowWithResult(achievementId, stepIncrement); task.AddOnSuccessListener((result) => { Debug.Log("[HMS GAMES] IncreaseStepAchievement SUCCESS" + result); OnIncreaseStepAchievementSuccess?.Invoke(); }).AddOnFailureListener((exception) => { Debug.LogError("[HMSAchievementsManager]: IncreaseStepAchievement failed. CauseMessage: " + exception.WrappedCauseMessage + ", ExceptionMessage: " + exception.WrappedExceptionMessage); OnIncreaseStepAchievementFailure?.Invoke(exception); }); }