Skip to content
On this page

AchievementsCurrentUser (Class)

Manages retrieving and recording achievements for the currently logged-in user.

Methods

RecordAchievement

Records an achievement for the currently logged-in user.

ParameterDescription
string keyThe key representing the achievement.
System.Action onSuccessCallback to execute upon successful operation.
System.Action<string> onErrorCallback to execute in case of an error.

GetAchievements

Retrieves the list of achievements for the currently logged-in user.

ParameterDescription
System.Action<List<Achievement>> onSuccessCallback to execute upon successful retrieval of achievements.
System.Action<string> onErrorCallback to execute in case of an error.