public void OnPointerExit(PointerEventData eventData) { if (_tooltip == null) { _tooltip = FindObjectOfType <ItemTooltipUI>(); } _tooltip?.Repaint(null, 0, eventData); }
public void OnPointerEnter(PointerEventData eventData) { if (_tooltip == null) { _tooltip = FindObjectOfType <ItemTooltipUI>(); } _tooltip?.Repaint(_slot.current as IUnityItemInstance, _slot.collection.GetAmount(_slot.collectionIndex), eventData); }
public void OnPointerExit(PointerEventData eventData) { if (_checkIfItemIsGoneCoroutine != null) { StopCoroutine(_checkIfItemIsGoneCoroutine); } if (_tooltip == null) { _tooltip = FindObjectOfType <ItemTooltipUI>(); } _tooltip.Repaint(null, 0, eventData); }
public void OnPointerEnter(PointerEventData eventData) { if (_tooltip == null) { _tooltip = FindObjectOfType <ItemTooltipUI>(); } if (_slot.current != null) { if (_checkIfItemIsGoneCoroutine != null) { StopCoroutine(_checkIfItemIsGoneCoroutine); } _checkIfItemIsGoneCoroutine = StartCoroutine(CheckIfItemIsGone()); _tooltip.Repaint(_slot.current.item as IUnityItemInstance, _slot.collection.GetAmount(_slot.collectionIndex), eventData); } }