Exemple #1
0
        public void OnPointerExit(PointerEventData eventData)
        {
            if (_tooltip == null)
            {
                _tooltip = FindObjectOfType <ItemTooltipUI>();
            }

            _tooltip?.Repaint(null, 0, eventData);
        }
Exemple #2
0
        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);
            }
        }