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