Skip to main content

Merchant.GetCurrencyCount

Declaration#

public virtual Int32 GetCurrencyCount(string currencyId)

Parameters#

NameDescription
currencyIdId 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(Merchant target)    {        int result = target.GetCurrencyCount(InventoryDatabase.instance.currencies[0].info.id);    }
}