public void OnPointerEnter(int index) { if (Inventory.Items[index] == null) { return; } InventoryPopupInfos.Show(Inventory.Items[index].Name, Inventory.Items[index].Count); OnHoovering = true; }
public void OnPointerEnter(int index) { int contentIndex = _buttons.Length * _actualPage + index; if (contentIndex >= _itemContainer.Content.Length) { return; } if (_itemContainer.Content[contentIndex] == null) { return; } if (_itemContainer.Content[contentIndex].Type == ItemType.Money) { InventoryPopupInfos.Show(_itemContainer.Content[contentIndex].Name, (int)_itemContainer.Content[contentIndex].Value); } else { InventoryPopupInfos.Show(_itemContainer.Content[contentIndex].Name, _itemContainer.Content[contentIndex].Count); } _onHoovering = true; }