public void OnScroll(PointerEventData eventData) { if (onScroll != null) { onScroll.CallEventHandle(this.gameObject, eventData); } }
public void OnMove(AxisEventData eventData) { if (onMove != null) { onMove.CallEventHandle(this.gameObject, eventData); } }
public void OnUpdateSelected(BaseEventData eventData) { if (onUpdateSelect != null) { onUpdateSelect.CallEventHandle(this.gameObject, eventData); } }
public void OnDeselect(BaseEventData eventData) { if (onDeSelect != null) { onDeSelect.CallEventHandle(this.gameObject, eventData); } }
public void OnPointerClick(PointerEventData eventData) { if (onClick != null) { onClick.CallEventHandle(this.gameObject, eventData); } }
public void OnPointerEnter(PointerEventData eventData) { if (onEnter != null) { onEnter.CallEventHandle(this.gameObject, eventData); } }
public void OnDrop(PointerEventData eventData) { if (onDrop != null) { onDrop.CallEventHandle(this.gameObject, eventData); } }
public void OnEndDrag(PointerEventData eventData) { if (onDragEnd != null) { onDragEnd.CallEventHandle(this.gameObject, eventData); } }
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; }
void SendTouchingMessage() { if (onTouching != null) { onTouching.CallEventHandle(this.gameObject, null); if (touchingDelta > 0) { this.Invoke("SendTouchingMessage", touchingDelta); } } }
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); } } }