public new void OnPointerEnter(PointerEventData eventData) { base.OnPointerEnter(eventData); var item = UIManager.Hands.CurrentSlot.Item; if (item == null || itemSlot.Item != null || itemSlot == UIManager.Hands.RightHand || itemSlot == UIManager.Hands.LeftHand) { return; } itemSlot.UpdateImage(item.gameObject, Validations.CanPutItemToSlot(PlayerManager.LocalPlayerScript, itemSlot.ItemSlot, item, NetworkSide.Client) ? successOverlayColor : failOverlayColor); }
public new void OnPointerEnter(PointerEventData eventData) { base.OnPointerEnter(eventData); var item = UIManager.Hands.CurrentSlot.Item; if (item == null || itemSlot.Item != null || itemSlot.equipSlot == EquipSlot.leftHand || itemSlot.equipSlot == EquipSlot.rightHand) { return; } itemSlot.UpdateImage(item, UIManager.CanPutItemToSlot(itemSlot.inventorySlot, item, PlayerManager.LocalPlayerScript) ? successOverlayColor : failOverlayColor); }