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); }
// Use this for initialization void Start() { eventData = new JiaoEventData(this); buttonEventDataList.Add(new JiaoEventData(this)); }
//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(); }