GetUser() | (none) | User? | Returns the profile, or null for a logged-out player. |
Refresh() | (none) | void | Reads the latest data from the server. |
UpdateUsername(username) | string | void | Sends the new username to the server and returns immediately. |
UpdateDisplayName(displayName) | string | void | Sends the new display name to the server and returns immediately. |
UpdatePassword(old, new) | string, string | void | Sends the new password to the server and returns immediately. |
RequestAccountDeletion(onSuccess, onError) | Action<AccountDeletion>, Action<string> | void | Schedules deletion of the account. Calls back with the scheduled date, or with a failure message. |
AddListener(listener) | Action | void | Calls the listener on each change of the state. |
RemoveListener(listener) | Action | void | Deletes the listener. |