Exemple #1
0
	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);
	}
Exemple #2
0
    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);
    }