public void OnPointerExit(PointerEventData eventData) { if (!IsActive() || !IsEnabled) { return; } IsPointerInside = false; ExitAction(); _state = PYHoverState.Idle; SendOnExit(); }
public void OnPointerEnter(PointerEventData eventData) { if (!IsActive() || !IsEnabled) { return; } IsPointerInside = true; EnterAction(); _state = PYHoverState.Over; SendOnEnter(); }