Merchant.AddFunds
Declaration#
public virtual RefusalReason AddFunds(Int32 amount, bool raiseEvents)Parameters#
| Name | Description |
|---|---|
| amount | Total value to add |
| raiseEvents | Raise associated event(s) |
Description#
Add non-preimum funds to inventory
Usage#
using NullSave.GDTK.Inventory;using UnityEngine;
public class CodeSample : MonoBehaviour{
public void Example(Merchant target) { target.AddFunds(100, true); }
}Declaration#
public virtual RefusalReason AddFunds(string id, Int32 count, bool raiseEvents)Parameters#
| Name | Description |
|---|---|
| id | Id of the currency to add |
| count | Number of that currency to add |
| raiseEvents | Raise associated event(s) |
Description#
Add non-preimum funds to inventory
Usage#
using NullSave.GDTK.Inventory;using UnityEngine;
public class CodeSample : MonoBehaviour{
public void Example(Merchant target, string id) { target.AddFunds(id, 10, true); }
}