Пример #1
0
 public void OnPointerClick(PointerEventData eventData)
 {
     if (eventData.clickTime - lastClickTime < 0.3f)
     {
         onDoubleClick?.CallHandle(this.gameObject, eventData);
         lastClickTime = 0;
     }
     else
     {
         onClick?.CallHandle(this.gameObject, eventData);
         lastClickTime = eventData.clickTime;
     }
 }
Пример #2
0
 public void OnCancel(BaseEventData eventData)
 {
     onCancel?.CallHandle(this.gameObject, eventData);
 }
Пример #3
0
 public void OnSubmit(BaseEventData eventData)
 {
     onSubmit?.CallHandle(this.gameObject, eventData);
 }
Пример #4
0
 public void OnBeginDrag(PointerEventData eventData)
 {
     onBeginDrag?.CallHandle(this.gameObject, eventData);
 }
Пример #5
0
 public void OnMove(AxisEventData eventData)
 {
     onMove?.CallHandle(this.gameObject, eventData);
 }
Пример #6
0
 public void OnScroll(PointerEventData eventData)
 {
     onScroll?.CallHandle(this.gameObject, eventData);
 }
Пример #7
0
 public void OnDrop(PointerEventData eventData)
 {
     onDrop?.CallHandle(this.gameObject, eventData);
 }
Пример #8
0
 public void OnDeselect(BaseEventData eventData)
 {
     onDeSelect?.CallHandle(this.gameObject, eventData);
 }
Пример #9
0
 public void OnUpdateSelected(BaseEventData eventData)
 {
     onUpdateSelect?.CallHandle(this.gameObject, eventData);
 }
Пример #10
0
 public void OnPointerExit(PointerEventData eventData)
 {
     onExit?.CallHandle(this.gameObject, eventData);
 }
Пример #11
0
 public void OnPointerUp(PointerEventData eventData)
 {
     onUp.CallHandle(this.gameObject, eventData);
 }
Пример #12
0
 public void OnPointerDown(PointerEventData eventData)
 {
     onDown?.CallHandle(this.gameObject, eventData);
 }