Skip to main content

Inventory.RemoveFunds

Declaration#

public virtual void RemoveFunds(Int32 totalAmount, bool raiseEvents)

Parameters#

NameDescription
totalAmountTotal value to remove
raiseEventsRaise associated event(s)

Description#

Remove non-premium funds from inventory

Usage#

using NullSave.GDTK.Inventory;using UnityEngine;
public class Example : MonoBehaviour{
    public void ExampleMethod(Inventory target)    {        target.RemoveFunds(100, true);    }
}

Declaration#

public virtual void RemoveFunds(string id, Int32 count, bool raiseEvents)

Parameters#

NameDescription
idId to remove
countCount to remove
raiseEventsRaise associated event(s)

Description#

Remove funds from inventory

Usage#

using NullSave.GDTK.Inventory;using UnityEngine;
public class Example : MonoBehaviour{
    public void ExampleMethod(Inventory target)    {        target.RemoveFunds(InventoryDatabase.instance.currencies[0].info.id, 10, true);    }
}