Merchant.RemoveItem
Declaration#
public virtual void RemoveItem(string itemId, Int32 count)Parameters#
| Name | Description |
|---|---|
| itemId | Id 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(Merchant target) { target.RemoveItem(InventoryDatabase.instance.items[0].info.id, 1); }
}Declaration#
public virtual void RemoveItem(GDTKItem item, Int32 count)Parameters#
| Name | Description |
|---|---|
| item | Item to remove |
| count | Count to remove |
Description#
Remove item from inventory
Usage#
using NullSave.GDTK.Inventory;using UnityEngine;
public class CodeSample : MonoBehaviour{
public void Example(Merchant target, GDTKItem other) { target.RemoveItem(other, 1); }
}