Skip to main content

Merchant.RemoveItemByInstance

Declaration#

public virtual void RemoveItemByInstance(string instance, Int32 count)

Parameters#

NameDescription
instanceId of instance to remove
countCount to remove

Description#

Remove item from inventory

Usage#

using NullSave.GDTK.Inventory;using UnityEngine;
public class Example : MonoBehaviour{
    public void ExampleMethod(Merchant target, GDTKItem other)    {        target.RemoveItemByInstance(other.instanceId, 1);    }
}