Merchant.GetEquippedItem
Declaration#
public virtual GDTKItem GetEquippedItem(string slotId)Parameters#
| Name | Description |
|---|---|
| slotId | Id to get |
Description#
Get the item currently equipped to a Equip Slot
Usage#
using NullSave.GDTK.Inventory;using UnityEngine;
public class Example : MonoBehaviour{
public void ExampleMethod(Merchant target) { GDTKItem result = target.GetEquippedItem(InventoryDatabase.instance.equipSlots[0].info.id); }
}