public void UnEquipItemEvent(short slotNo) {//This must be called before the item is finally removed. ObjectInteraction objInt = GetObjectIntAtSlot(slotNo); if (objInt != null) { objInt.UnEquip(slotNo); } }
public void UnEquipItemEvent(short slotNo) { //This must be called before the item is finally removed. GameObject obj = GetGameObjectAtSlot(slotNo); if (obj != null) { ObjectInteraction objInt = obj.GetComponent <ObjectInteraction>(); if (objInt != null) { objInt.UnEquip(slotNo); } } }