Inventory.RemoveItemByInstance
Declaration#
public virtual void RemoveItemByInstance(string instance, Int32 count)Parameters#
| Name | Description |
|---|---|
| instance | Id of instance to remove |
| count | Count to remove |
Description#
Remove item from inventory
Usage#
using NullSave.GDTK.Inventory;using UnityEngine;
public class Example : MonoBehaviour{
public void ExampleMethod(Inventory target, GDTKItem other) { target.RemoveItemByInstance(other.instanceId, 1); }
}