Beispiel #1
0
    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);
        }
    }
Beispiel #2
0
    void IUpdateSelectedHandler.OnUpdateSelected(BaseEventData eventData)
    {
        if (onUpdateSelectedCallBack != null)
        {
            onUpdateSelectedCallBack();
        }

        if (onUpdateSelected != null)
        {
            data = new UGUIData(gameObject, eventData, parameter);
            onUpdateSelected(ref data);
        }
    }
Beispiel #3
0
    void ISubmitHandler.OnSubmit(BaseEventData eventData)
    {
        if (onSubmitCallBack != null)
        {
            onSubmitCallBack();
        }

        if (onSubmit != null)
        {
            data = new UGUIData(gameObject, eventData, parameter);
            onSubmit(ref data);
        }
    }
Beispiel #4
0
    void IScrollHandler.OnScroll(PointerEventData eventData)
    {
        if (onScrollCallBack != null)
        {
            onScrollCallBack();
        }

        if (onScroll != null)
        {
            data = new UGUIData(gameObject, eventData, parameter);
            onScroll(ref data);
        }
    }
Beispiel #5
0
    void IMoveHandler.OnMove(AxisEventData eventData)
    {
        if (onMoveCallBack != null)
        {
            onMoveCallBack();
        }

        if (onMove != null)
        {
            data = new UGUIData(gameObject, eventData, parameter);
            onMove(ref data);
        }
    }
Beispiel #6
0
    void IInitializePotentialDragHandler.OnInitializePotentialDrag(PointerEventData eventData)
    {
        if (onInitializePotentialDragCallBack != null)
        {
            onInitializePotentialDragCallBack();
        }

        if (onInitializePotentialDrag != null)
        {
            data = new UGUIData(gameObject, eventData, parameter);
            onInitializePotentialDrag(ref data);
        }
    }
Beispiel #7
0
    void IEndDragHandler.OnEndDrag(PointerEventData eventData)
    {
        if (onEndDragCallBack != null)
        {
            onEndDragCallBack();
        }

        if (onEndDrag != null)
        {
            data = new UGUIData(gameObject, eventData, parameter);
            onEndDrag(ref data);
        }
    }
Beispiel #8
0
    void IDeselectHandler.OnDeselect(BaseEventData eventData)
    {
        if (onDeselectCallBack != null)
        {
            onDeselectCallBack();
        }

        if (onDeselect != null)
        {
            data = new UGUIData(gameObject, eventData, parameter);
            onDeselect(ref data);
        }
    }
Beispiel #9
0
    void ICancelHandler.OnCancel(BaseEventData eventData)
    {
        if (onCancelCallBack != null)
        {
            onCancelCallBack();
        }

        if (onCancel != null)
        {
            data = new UGUIData(gameObject, eventData, parameter);
            onCancel(ref data);
        }
    }
Beispiel #10
0
    void IPointerExitHandler.OnPointerExit(PointerEventData eventData)
    {
        if (onPointerExitCallBack != null)
        {
            onPointerExitCallBack();
        }

        if (onPointerExit != null)
        {
            data = new UGUIData(gameObject, eventData, parameter);
            onPointerExit(ref data);
        }
    }