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