v3.1.2
2020.3+
Class PlayerBalancesHelper
Inherited Members
UnityEngine.Object.FindObjectsOfType<T>(System.Boolean)
UnityEngine.Object.FindObjectOfType<T>(System.Boolean)
Namespace: Unity.Services.Economy.Tools
Syntax
[CreateAssetMenu(fileName = "PlayerBalancesHelper", menuName = "Economy Tools/Player Balances Helper")]
public class PlayerBalancesHelper : ScriptableObject
Fields
action
Declaration
[Header("Currencies Helper")]
public PlayerBalancesHelper.CurrencyAction action
Field Value
Type | Description |
---|---|
PlayerBalancesHelper.CurrencyAction |
amount
Declaration
public int amount
Field Value
Type | Description |
---|---|
Int32 |
currencyId
Declaration
public string currencyId
Field Value
Type | Description |
---|---|
String |
Methods
InvokeAsync()
Used to trigger the call to the Economy Service using the options set in the inspector.
Declaration
public async void InvokeAsync()