Пример #1
0
        public void OnPointerExit(PointerEventData eventData)
        {
            if (!IsActive() || !IsEnabled)
            {
                return;
            }

            IsPointerInside = false;
            ExitAction();
            _state = PYHoverState.Idle;
            SendOnExit();
        }
Пример #2
0
        public void OnPointerEnter(PointerEventData eventData)
        {
            if (!IsActive() || !IsEnabled)
            {
                return;
            }

            IsPointerInside = true;
            EnterAction();
            _state = PYHoverState.Over;
            SendOnEnter();
        }