public void OnPointerEnter(PointerEventData eventData) { if (isHovered) { return; } isHovered = true; CUIActionHandler.Activate(actionsOnHover); }
public void Select(bool instant = false, bool silent = false) { isSelected = true; CUIActionHandler.Activate(actionsOnActivated, instant); if (!silent) { onToggled?.Invoke(true); } }
private void Update() { if (pointerDown) { if (!closeIconShowing && holdTimer >= holdToCloseTime) { CUIActionHandler.Activate(closeActions); closeIconShowing = true; } holdTimer += Time.deltaTime; } }
public void OnPointerDown(PointerEventData eventData) { isPressed = true; CUIActionHandler.Activate(actionsOnDown); }