Skip to content
On this page

Scores Class Documentation

Manages retrieving and displaying scores for a game.

Fields

FieldDescription
ScoresCurrentUser currentUserRepresents the current user's score-related operations.

Methods

ShowDialog (Overloaded)

Displays the scores dialog.

ParameterDescription
------
ParameterDescription
System.Action onClosedCallback to execute when the dialog is closed.
ParameterDescription
System.Action<string> onErrorCallback to execute in case of an error.
ParameterDescription
System.Action onClosedCallback to execute when the dialog is closed.
System.Action<string> onErrorCallback to execute in case of an error.

GetLevelKeys

Retrieves the keys for different game levels.

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

GetScores (Overloaded)

Retrieves scores for the specified level and period.

ParameterDescription
string levelKeyKey associated with the level.
ScorePeriod periodTime period for which the scores are to be retrieved.
System.Action<List<Score>> onSuccessCallback to execute upon successful retrieval of scores.
System.Action<string> onErrorCallback to execute in case of an error.
ParameterDescription
string levelKeyKey associated with the level.
ScorePeriod periodTime period for which the scores are to be retrieved.
string valueFormatterFormatter for the score value.
System.Action<List<Score>> onSuccessCallback to execute upon successful retrieval of scores.
System.Action<string> onErrorCallback to execute in case of an error.