Merchant.AddFundsPremium
Declaration#
public virtual void AddFundsPremium(string id, Int32 count)Parameters#
| Name | Description |
|---|---|
| id | Id of the currency to add |
| count | Number 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; } } }
}