Skip to main content

Merchant.AddFundsPremium

Declaration#

public virtual void AddFundsPremium(string id, Int32 count)

Parameters#

NameDescription
idId of the currency to add
countNumber of that currency to add

Description#

Add preimum funds to inventory

Usage#

using NullSave.GDTK.Inventory;using UnityEngine;
public class Example : MonoBehaviour{
    public void ExampleMethod(Merchant target)    {        foreach(GDTKCurrency currency in InventoryDatabase.instance.currencies)        {            if(currency.premium)            {                target.AddFundsPremium(currency.info.id, 1);                return;            }        }    }
}