示例#1
0
 public void OnScroll(PointerEventData eventData)
 {
     if (onScroll != null)
     {
         onScroll.CallEventHandle(this.gameObject, eventData);
     }
 }
示例#2
0
 public void OnMove(AxisEventData eventData)
 {
     if (onMove != null)
     {
         onMove.CallEventHandle(this.gameObject, eventData);
     }
 }
示例#3
0
 public void OnUpdateSelected(BaseEventData eventData)
 {
     if (onUpdateSelect != null)
     {
         onUpdateSelect.CallEventHandle(this.gameObject, eventData);
     }
 }
示例#4
0
 public void OnDeselect(BaseEventData eventData)
 {
     if (onDeSelect != null)
     {
         onDeSelect.CallEventHandle(this.gameObject, eventData);
     }
 }
示例#5
0
 public void OnPointerClick(PointerEventData eventData)
 {
     if (onClick != null)
     {
         onClick.CallEventHandle(this.gameObject, eventData);
     }
 }
示例#6
0
 public void OnPointerEnter(PointerEventData eventData)
 {
     if (onEnter != null)
     {
         onEnter.CallEventHandle(this.gameObject, eventData);
     }
 }
示例#7
0
 public void OnDrop(PointerEventData eventData)
 {
     if (onDrop != null)
     {
         onDrop.CallEventHandle(this.gameObject, eventData);
     }
 }
示例#8
0
 public void OnEndDrag(PointerEventData eventData)
 {
     if (onDragEnd != null)
     {
         onDragEnd.CallEventHandle(this.gameObject, eventData);
     }
 }
示例#9
0
        public void OnPointerUp(PointerEventData eventData)
        {
            if (onUp != null)
            {
                onUp.CallEventHandle(this.gameObject, eventData);
            }

            if (pressed && onTouchEnd != null)
            {
                onTouchEnd.CallEventHandle(gameObject, eventData);
            }
            if (onTouching != null)
            {
                this.CancelInvoke("SendTouchingMessage");
            }
            pressed = false;
        }
示例#10
0
 void SendTouchingMessage()
 {
     if (onTouching != null)
     {
         onTouching.CallEventHandle(this.gameObject, null);
         if (touchingDelta > 0)
         {
             this.Invoke("SendTouchingMessage", touchingDelta);
         }
     }
 }
示例#11
0
 public void OnPointerDown(PointerEventData eventData)
 {
     if (onDown != null)
     {
         onDown.CallEventHandle(this.gameObject, eventData);
     }
     if (onTouchBegin != null)
     {
         onTouchBegin.CallEventHandle(this.gameObject, eventData);
     }
     if (onTouching != null)
     {
         if (touchingBeginDelta >= 0)
         {
             this.Invoke("SendTouchingMessage", touchingBeginDelta);
         }
     }
 }