Inventory.AddFundsPremium
#
Declarationpublic virtual void AddFundsPremium(string id, Int32 count)
#
ParametersName | Description |
---|---|
id | Id of the currency to add |
count | Number of that currency to add |
#
DescriptionAdd preimum funds to inventory
#
Usageusing NullSave.GDTK.Inventory;using UnityEngine;
public class Example : MonoBehaviour{
public void ExampleMethod(Inventory target) { foreach(GDTKCurrency currency in InventoryDatabase.instance.currencies) { if(currency.premium) { target.AddFundsPremium(currency.info.id, 1); return; } } }
}