private void DragStart(Vector3 pos, bool isLongTap, bool isInitialDrag)
 {
     if (OnDragStart != null)
     {
         OnDragStart(pos, isLongTap);
     }
     isClickPrevented   = true;
     timeSinceDragStart = 0;
     DragFinalMomentumVector.Clear();
 }
示例#2
0
 private void DragStart(Vector3 pos)
 {
     if (OnDragStart != null)
     {
         OnDragStart(pos);
     }
     isClickPrevented   = true;
     timeSinceDragStart = 0;
     DragFinalMomentumVector.Clear();
 }
示例#3
0
 private void DragStart(Vector3 pos)
 {
     if (OnDragStart != null && !MobileTouchCamera.checkCamFollow)
     {
         OnDragStart(pos);
     }
     isClickPrevented   = true;
     timeSinceDragStart = 0;
     DragFinalMomentumVector.Clear();
     OpenDialog.instance.Close();
 }
        private void DragStop(Vector3 pos)
        {
            if (OnDragStop != null)
            {
                Vector3 momentum = Vector3.zero;
                if (DragFinalMomentumVector.Count > 0)
                {
                    for (int i = 0; i < DragFinalMomentumVector.Count; ++i)
                    {
                        momentum += DragFinalMomentumVector[i];
                    }
                    momentum /= DragFinalMomentumVector.Count;
                }
                OnDragStop(pos, momentum);
            }

            DragFinalMomentumVector.Clear();
        }
示例#5
0
        private void DragStop(Vector3 pos)
        {
            if (OnDragStop != null && !MobileTouchCamera.checkCamFollow)
            {
                Vector3 momentum = Vector3.zero;
                if (DragFinalMomentumVector.Count > 0)
                {
                    for (int i = 0; i < DragFinalMomentumVector.Count; ++i)
                    {
                        momentum += DragFinalMomentumVector[i];
                    }
                    momentum /= DragFinalMomentumVector.Count;
                }
                OnDragStop(pos, momentum);
            }

            DragFinalMomentumVector.Clear();
        }