Пример #1
0
        protected void setObjectTouchDown(UIObject obj, PointerEventData eventData, int gridIndex)
        {
            if (obj.type == UIElementType.Button)
            {
                Button bt = ((UIButton)obj).button;

                bt.OnPointerEnter(eventData);
                bt.OnPointerDown(eventData);
            }

            obj.getPointer().OnPointerDown(eventData);
            obj.getPointer().OnTouchGridDown(gridIndex);
        }
Пример #2
0
        protected void setObjectTouchUp(UIObject obj, PointerEventData eventData, int gridIndex)
        {
            if (obj.type == UIElementType.Button)
            {
                Button bt = ((UIButton)obj).button;

                bt.OnPointerUp(eventData);
                bt.OnPointerExit(eventData);
            }

            obj.getPointer().OnPointerClick(eventData);
            obj.getPointer().OnTouchGridClick(gridIndex);
            obj.getPointer().OnPointerUp(eventData);
        }
Пример #3
0
        protected void setObjectTouchCancel(UIObject obj, PointerEventData eventData)
        {
            if (obj.type == UIElementType.Button)
            {
                Button bt = ((UIButton)obj).button;

                bt.OnPointerUp(eventData);
                bt.OnPointerExit(eventData);
            }

            obj.getPointer().OnPointerExit(eventData);
        }