Inventory.AddFunds
#
Declarationpublic virtual RefusalReason AddFunds(Int32 amount, bool raiseEvents)
#
ParametersName | Description |
---|---|
amount | Total value to add |
raiseEvents | Raise associated event(s) |
#
DescriptionAdd non-preimum funds to inventory
#
Usageusing NullSave.GDTK.Inventory;using UnityEngine;
public class Example : MonoBehaviour{
public void ExampleMethod(Inventory target) { target.AddFunds(102, true); }
}
#
Declarationpublic virtual RefusalReason AddFunds(string id, Int32 count, bool raiseEvents)
#
ParametersName | Description |
---|---|
id | Id of the currency to add |
count | Number of that currency to add |
raiseEvents | Raise associated event(s) |
#
DescriptionAdd non-preimum funds to inventory
#
Usageusing NullSave.GDTK.Inventory;using UnityEngine;
public class Example : MonoBehaviour{
public void ExampleMethod(Inventory target) { target.AddFunds(InventoryDatabase.instance.currencies[0].info.id, 5, true); }
}