void IPointerClickHandler.OnPointerClick(PointerEventData eventData) { if (onPointerClickCallBack != null) { onPointerClickCallBack(); } data = new UGUIData(gameObject, eventData, parameter); if (onPointerClick != null) { onPointerClick(ref data); } if (onPointerRightDoubleClick != null && eventData.pointerId == RightMouseID && eventData.clickCount == MouseClick) { onPointerRightDoubleClick(ref data); } if (onPointerLeftClick != null && eventData.pointerId == LeftMouseID && eventData.clickCount == MouseClick) { onPointerLeftClick(ref data); } if (onPointerLeftDoubleClick != null && eventData.pointerId == LeftMouseID && eventData.clickCount == DoubleMouseClick) { onPointerLeftDoubleClick(ref data); } if (onPointerRightClick != null && eventData.pointerId == RightMouseID && eventData.clickCount == MouseClick) { onPointerRightClick(ref data); } }
void IUpdateSelectedHandler.OnUpdateSelected(BaseEventData eventData) { if (onUpdateSelectedCallBack != null) { onUpdateSelectedCallBack(); } if (onUpdateSelected != null) { data = new UGUIData(gameObject, eventData, parameter); onUpdateSelected(ref data); } }
void ISubmitHandler.OnSubmit(BaseEventData eventData) { if (onSubmitCallBack != null) { onSubmitCallBack(); } if (onSubmit != null) { data = new UGUIData(gameObject, eventData, parameter); onSubmit(ref data); } }
void IScrollHandler.OnScroll(PointerEventData eventData) { if (onScrollCallBack != null) { onScrollCallBack(); } if (onScroll != null) { data = new UGUIData(gameObject, eventData, parameter); onScroll(ref data); } }
void IMoveHandler.OnMove(AxisEventData eventData) { if (onMoveCallBack != null) { onMoveCallBack(); } if (onMove != null) { data = new UGUIData(gameObject, eventData, parameter); onMove(ref data); } }
void IInitializePotentialDragHandler.OnInitializePotentialDrag(PointerEventData eventData) { if (onInitializePotentialDragCallBack != null) { onInitializePotentialDragCallBack(); } if (onInitializePotentialDrag != null) { data = new UGUIData(gameObject, eventData, parameter); onInitializePotentialDrag(ref data); } }
void IEndDragHandler.OnEndDrag(PointerEventData eventData) { if (onEndDragCallBack != null) { onEndDragCallBack(); } if (onEndDrag != null) { data = new UGUIData(gameObject, eventData, parameter); onEndDrag(ref data); } }
void IDeselectHandler.OnDeselect(BaseEventData eventData) { if (onDeselectCallBack != null) { onDeselectCallBack(); } if (onDeselect != null) { data = new UGUIData(gameObject, eventData, parameter); onDeselect(ref data); } }
void ICancelHandler.OnCancel(BaseEventData eventData) { if (onCancelCallBack != null) { onCancelCallBack(); } if (onCancel != null) { data = new UGUIData(gameObject, eventData, parameter); onCancel(ref data); } }
void IPointerExitHandler.OnPointerExit(PointerEventData eventData) { if (onPointerExitCallBack != null) { onPointerExitCallBack(); } if (onPointerExit != null) { data = new UGUIData(gameObject, eventData, parameter); onPointerExit(ref data); } }