Inventory.GetCurrencyCount
Declaration#
public virtual Int32 GetCurrencyCount(string currencyId)Parameters#
| Name | Description |
|---|---|
| currencyId | Id to get |
Description#
Get the current count of a currency in inventory
Usage#
using NullSave.GDTK.Inventory;using UnityEngine;
public class Example : MonoBehaviour{
public void ExampleMethod(Inventory target) { int result = target.GetCurrencyCount(InventoryDatabase.instance.currencies[0].info.id); }
}