示例#1
0
        //public void OnBeginDrag(BaseEventData eventData)
        //{
        //    var g = EventSystem.current.currentSelectedGameObject;
        //    UGUIEvent.onCancelHandle(g, eventData);
        //}

        public void OnDrag(BaseEventData eventData)
        {
            var g = EventSystem.current.currentSelectedGameObject;
            PointerEventData ped = eventData as PointerEventData;

            UGUIEvent.onDragHandle(g, ped.delta);
        }
示例#2
0
        public void OnPointerClick(BaseEventData eventData)
        {
            //PointerEventData ped = eventData as PointerEventData;
            var g = EventSystem.current.currentSelectedGameObject;

            UGUIEvent.onClickHandle(g, eventData);
        }
示例#3
0
        public void OnPointerClick(BaseEventData eventData)
        {
            //PointerEventData ped = eventData as PointerEventData;
            var g = eventData.selectedObject;

            UGUIEvent.onClickHandle(g, eventData);
        }
示例#4
0
        //public void OnBeginDrag(BaseEventData eventData)
        //{
        //    var g = EventSystem.current.currentSelectedGameObject;
        //    UGUIEvent.onCancelHandle(g, eventData);
        //}

        public void OnDrag(BaseEventData eventData)
        {
            var g = eventData.selectedObject;
            PointerEventData ped = eventData as PointerEventData;

            UGUIEvent.onDragHandle(g, ped.delta);
        }
示例#5
0
        public void OnButtonClick(Object arg)
        {
            var g = EventSystem.current.currentSelectedGameObject;

            UGUIEvent.onClickHandle(g, arg); //Debug.Log("you are click "+g);
        }
示例#6
0
        public void OnCancel(BaseEventData eventData)
        {
            var g = EventSystem.current.currentSelectedGameObject;

            UGUIEvent.onCancelHandle(g, eventData);
        }
示例#7
0
        public void OnPointerUp(BaseEventData eventData)
        {
            var g = EventSystem.current.currentSelectedGameObject;

            UGUIEvent.onPressHandle(g, eventData);
        }
示例#8
0
        public void OnCustomerEvent(MonoBehaviour arg)
        {
            var g = EventSystem.current.currentSelectedGameObject;

            UGUIEvent.onCustomerHandle(g, arg); //Debug.Log("you are click "+g);
        }
示例#9
0
        public void OnCancel(BaseEventData eventData)
        {
            var g = eventData.selectedObject;

            UGUIEvent.onCancelHandle(g, eventData);
        }
示例#10
0
        public void OnSelect(BaseEventData eventData)
        {
            var g = eventData.selectedObject;

            UGUIEvent.onSelectHandle(g, eventData);
        }
示例#11
0
        public void OnPointerUp(BaseEventData eventData)
        {
            var g = eventData.selectedObject;

            UGUIEvent.onPressHandle(g, eventData);
        }