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