Class WalletManager
Manages the player currency balances.
Namespace: UnityEngine.GameFoundation
Assembly: solution.dll
Syntax
public static class WalletManager
Properties
| Name | Description |
|---|---|
| IsInitialized | Tells whether the wallet manager is initialized or not. |
Methods
| Name | Description |
|---|---|
| AddBalance(string, long) | Increases the balance of the specified Currency. |
| AddBalance(Currency, long) | Increases the balance of the specified Currency. |
| GetBalance(string) | Gets the balance of the specified Currency. |
| GetBalance(Currency) | Gets the balance of the specified Currency. |
| RemoveBalance(string, long) | Decreases the balance of the specified Currency. |
| RemoveBalance(Currency, long) | Decreases the balance of the specified Currency. |
| SetBalance(string, long) | Sets the balance of the specified Currency. |
| SetBalance(Currency, long) | Sets the balance of the specified Currency. |
Events
| Name | Description |
|---|---|
| balanceChanged | Triggered every time a balance is modified, whether added, removed, or set. |