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; }
public void setDragStartCallback(OnDragStartCallback callback) { mDragStartCallback = callback; }
public void RegisterOnDragStartCallback(OnDragStartCallback f) { onDragStartCallBacks.Add(f); }