v3.1.2
2020.3+

Class PlayerBalancesHelper

Inheritance
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
TypeDescription
PlayerBalancesHelper.CurrencyAction

amount

Declaration
public int amount
Field Value
TypeDescription
Int32

currencyId

Declaration
public string currencyId
Field Value
TypeDescription
String

Methods

InvokeAsync()

Used to trigger the call to the Economy Service using the options set in the inspector.

Declaration
public async void InvokeAsync()