Beispiel #1
0
        public void OnPointerExit(PointerEventData data)
        {
            if (!IsInteractable())
            {
                return;
            }

            m_IsHover = false;

            current   = this;
            eventData = data;
            if (onPointerExit != null)
            {
                onPointerExit.Invoke();
            }
        }
Beispiel #2
0
        public void OnPointerEnter(PointerEventData data)
        {
            if (!IsInteractable())
            {
                return;
            }

            m_IsHover = true;

            current   = this;
            eventData = data;
            if (onPointerEnter != null)
            {
                onPointerEnter.Invoke();
            }
        }