Пример #1
0
    public void OnEndDrag(PointerEventData eventData)
    {
        GetComponent <CanvasGroup>().blocksRaycasts = true;

        _outlineImage.enabled = false;
        OnEndDragEvent?.Invoke(this);
    }
Пример #2
0
 public void OnEndDrag(PointerEventData eventData)
 {
     if (interactable)
     {
         OnEndDragEvent?.Invoke(index);
     }
 }
Пример #3
0
 public void OnEndDrag(PointerEventData eventData)
 {
     //if (item != null)
     {
         icon.color = new Color(1, 1, 1, 1);
         OnEndDragEvent?.Invoke(this);
     }
 }
Пример #4
0
 public void OnEndDrag(PointerEventData eventData)
 {
     if (Item != null)
     {
         image.color = _normalColor;
     }
     OnEndDragEvent?.Invoke(this);
 }
Пример #5
0
 public void OnEndDrag(PointerEventData eventData)
 {
     if (eventData.button == DragInputButton)
     {
         //分发OnEndDrag消息
         if (OnEndDragEvent != null)
         {
             OnEndDragEvent.Invoke(eventData);
         }
     }
 }
Пример #6
0
 public void ClearDragEvent()
 {
     {
         if (OnDragEvent != null)
         {
             Delegate[] invokeList = OnDragEvent.GetInvocationList();
             if (invokeList != null)
             {
                 foreach (Delegate del in invokeList)
                 {
                     OnDragEvent -= (OnDragDlg)del;
                 }
             }
         }
     }
     {
         if (OnBeginDragEvent != null)
         {
             Delegate[] invokeList = OnBeginDragEvent.GetInvocationList();
             if (invokeList != null)
             {
                 foreach (Delegate del in invokeList)
                 {
                     OnBeginDragEvent -= (OnBeginDragDlg)del;
                 }
             }
         }
     }
     {
         if (OnEndDragEvent != null)
         {
             Delegate[] invokeList = OnEndDragEvent.GetInvocationList();
             if (invokeList != null)
             {
                 foreach (Delegate del in invokeList)
                 {
                     OnEndDragEvent -= (OnEndDragDlg)del;
                 }
             }
         }
     }
 }
Пример #7
0
 /// <summary>
 /// On end drag.
 /// </summary>
 /// <param name="eventData">Pointer event data.</param>
 public void OnEndDrag(PointerEventData eventData)
 {
     OnEndDragEvent?.Invoke(eventData);
 }
Пример #8
0
 public void OnEndDrag(PointerEventData eventData)
 {
     CancelDrag(eventData);
     OnEndDragEvent?.Invoke(this);
 }
Пример #9
0
 public void OnEndDrag(BaseEventData eventData)
 {
     OnEndDragEvent?.Invoke(this);
 }
Пример #10
0
 public void OnEndDrag(PointerEventData eventData)
 {
     OnEndDragEvent?.Invoke(this);
     ObtenerObjetoInventario();
 }
Пример #11
0
 public override void OnEndDrag(PointerEventData pointerEventData)
 {
     base.OnEndDrag(pointerEventData);
     OnEndDragEvent?.Invoke(pointerEventData);
 }
Пример #12
0
 public void OnEndDrag(PointerEventData eventData) => OnEndDragEvent?.Invoke(this);
Пример #13
0
 /// <summary>
 /// 结束拖拽
 /// </summary>
 /// <param name="_eventData">参数</param>
 public void OnEndDrag(PointerEventData _eventData)
 {
     OnEndDragEvent?.Invoke(this, _eventData);
 }