public void ShowItem(ItemData item) { ItemData itemInCurrentSlot; CrewInspector.Instance.CurrentInspectedCharacter.GetItemInSlot(CrewInspector.Instance.CurrentInspectedSlot, out itemInCurrentSlot); showingEquippedItem = itemInCurrentSlot == item; gameObject.SetActive(true); itemName.text = item.itemName; itemDescription.text = item.itemDescription; itemImage.sprite = item.LoadItemIcon(); string itemProps = item.GetItemStatModifiersList(); if (string.IsNullOrEmpty(itemProps)) itemProperties.text = "No properties"; else itemProperties.text = itemProps; if (showingEquippedItem) { equipUnequipButton.GetComponentInChildren<Text>().text = "Unequip"; EnableEquipButton(true); } else { equipUnequipButton.GetComponentInChildren<Text>().text = "Equip"; EnableEquipButton(CrewInventory.Instance.GetFreeItemAmount(item.itemName) > 0); } }