public void ObjectHoverExited(ItemEntryUI exited) { if (m_HoveredItem == exited) { m_HoveredItem = null; Tooltip.gameObject.SetActive(false); } }
public void ObjectHoveredEnter(ItemEntryUI hovered) { m_HoveredItem = hovered; Tooltip.gameObject.SetActive(true); Item itemUsed = m_HoveredItem.InventoryEntry != -1 ? m_Data.Inventory.Entries[m_HoveredItem.InventoryEntry].Item : m_HoveredItem.EquipmentItem; Tooltip.Name.text = itemUsed.ItemName; Tooltip.DescriptionText.text = itemUsed.GetDescription(); }
void OnEnable() { m_HoveredItem = null; Tooltip.gameObject.SetActive(false); }