void IBeginDragHandler.OnBeginDrag(PointerEventData eventData)
 {
     if (OnBeginDrag != null)
     {
         OnBeginDrag.Invoke();
     }
 }
    public void OnBeginDrag(PointerEventData eventData)
    {
        if (!IsActive() || !IsInteractable())
        {
            return;
        }

        onBeginDrag.Invoke(eventData);
    }
Exemple #3
0
        public virtual void OnBeginDrag(PointerEventData eventData)
        {
            if (onDragBegin != null)
            {
                onDragBegin.Invoke(eventData.position);
            }

            if (passEvent)
            {
                UITools.Instance.PassPointerEvent(eventData, ExecuteEvents.beginDragHandler);
            }
        }
Exemple #4
0
 private void DoBeginDrag(Vector2 pos)
 {
     m_status = TouchStatus.Dragging;
     BeginDragEvent?.Invoke(pos);
 }
Exemple #5
0
 public void OnBeginDragEvent(Slot slot)
 {
     BeginDragEvent?.Invoke(slot);
 }