Merchant.RemoveFunds
Declaration#
public virtual void RemoveFunds(Int32 totalAmount, bool raiseEvents)Parameters#
| Name | Description |
|---|---|
| totalAmount | Total value to remove |
| raiseEvents | Raise associated event(s) |
Description#
Remove non-premium funds from inventory
Usage#
using NullSave.GDTK.Inventory;using UnityEngine;
public class Example : MonoBehaviour{
public void ExampleMethod(Merchant target) { target.RemoveFunds(100); }
}Declaration#
public virtual void RemoveFunds(string id, Int32 count, bool raiseEvents)Parameters#
| Name | Description |
|---|---|
| id | Id to remove |
| count | Count to remove |
| raiseEvents | Raise associated event(s) |
Description#
Remove funds from inventory
Usage#
using NullSave.GDTK.Inventory;using UnityEngine;
public class Example : MonoBehaviour{
public void ExampleMethod(Merchant target) { target.RemoveFunds(InventoryDatabase.instance.currencies[0].info.id, 10); }
}