Пример #1
0
 public override void resetProperty()
 {
     base.resetProperty();
     mDragStartCallback        = null;
     mDragEndCallback          = null;
     mDragEndTotallyCallback   = null;
     mDragingCallback          = null;
     mInterruptCallback        = null;
     mPrepareDragMousePosition = Vector3.zero;
     mDragMouseOffset          = Vector3.zero;
     mAllowDragDirection       = Vector2.zero;
     mStartDragThreshold       = 20.0f;
     mDragStartAngleThreshold  = toRadian(45.0f);
     mPreparingDrag            = false;
     mDrag        = false;
     mTouchFinger = 0;
 }
Пример #2
0
 public void setDragStartCallback(OnDragStartCallback callback)
 {
     mDragStartCallback = callback;
 }
Пример #3
0
 public void RegisterOnDragStartCallback(OnDragStartCallback f)
 {
     onDragStartCallBacks.Add(f);
 }