Ejemplo n.º 1
0
        protected void ProcessPressDown(JiaoEventData eventData, jiaoHandlers handlers)
        {
            eventData.isMoved       = true;
            eventData.pressPosition = transform.position;
            eventData.pressRotation = transform.rotation;

            // drag start
            GetEventHandlersFromHoveredColliders <IColliderEventJiaoHandler>(eventData.callingHandlers, handlers.jiaoColliderHandlers);
        }
Ejemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     eventData = new JiaoEventData(this);
     buttonEventDataList.Add(new JiaoEventData(this));
 }
Ejemplo n.º 3
0
        //protected void ProcessPressing(JiaoEventData eventData, jiaoHandlers handlers)
        //{
        //    // dragging
        //    for (int i = eventData.callingHandlers.Count - 1; i >= 0; --i)
        //    {
        //        handlers.jiaoColliderHandlers.Add(eventData.callingHandlers[i]);
        //    }
        //}

        protected void ProcessPressUp(JiaoEventData eventData, jiaoHandlers handlers)
        {
            eventData.isMoved = false;

            eventData.callingHandlers.Clear();
        }