예제 #1
0
        private void UpdateEventData(GameObject dragGameObject)
        {
            if (m_eventData == null)
            {
                m_eventData = new DragEventData();
            }

            m_eventData.Drag           = dragGameObject;
            m_eventData.PointerDelta   = PointerDelta;
            m_eventData.PointerCurrent = Input.mousePosition;
            m_eventData.IsMoving       = IsMoving;
        }
예제 #2
0
 public void OnDrag(DragEventData eventData)
 {
     m_previousPosition      = RectTransform.position;
     RectTransform.position += eventData.PointerDelta;
     KeepInScreen();
 }
예제 #3
0
 public void OnEndDrag(DragEventData eventData)
 {
 }
예제 #4
0
 public void OnBeginDrag(DragEventData eventData)
 {
 }