Exemplo n.º 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);
        }
Exemplo n.º 2
0
        public void OnPointerClick(BaseEventData eventData)
        {
            //PointerEventData ped = eventData as PointerEventData;
            var g = EventSystem.current.currentSelectedGameObject;

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

            UGUIEvent.onClickHandle(g, eventData);
        }
Exemplo n.º 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);
        }
Exemplo n.º 5
0
        public void OnButtonClick(Object arg)
        {
            var g = EventSystem.current.currentSelectedGameObject;

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

            UGUIEvent.onCancelHandle(g, eventData);
        }
Exemplo n.º 7
0
        public void OnPointerUp(BaseEventData eventData)
        {
            var g = EventSystem.current.currentSelectedGameObject;

            UGUIEvent.onPressHandle(g, eventData);
        }
Exemplo n.º 8
0
        public void OnCustomerEvent(MonoBehaviour arg)
        {
            var g = EventSystem.current.currentSelectedGameObject;

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

            UGUIEvent.onCancelHandle(g, eventData);
        }
Exemplo n.º 10
0
        public void OnSelect(BaseEventData eventData)
        {
            var g = eventData.selectedObject;

            UGUIEvent.onSelectHandle(g, eventData);
        }
Exemplo n.º 11
0
        public void OnPointerUp(BaseEventData eventData)
        {
            var g = eventData.selectedObject;

            UGUIEvent.onPressHandle(g, eventData);
        }