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