/// <summary> /// Init the specified offset and direction. /// </summary> /// <param name="offset">Offset, transform offset.</param> /// <param name="direction">Direction, transform direction.</param> public void init(int offset = 0, TRANSFORM_DIRECTION direction = TRANSFORM_DIRECTION.Y_AXIS) { mOffset = offset; mTransformDirection = direction; }
/// <summary> /// Init the specified scrollRect, offset and direction. /// </summary> /// <param name="scrollRect">Scroll rect, the ScrollRect in ScrollView.</param> /// <param name="offset">Offset, transform offset.</param> /// <param name="direction">Direction, transform direction.</param> public void init(ScrollRect scrollRect, int offset = 0, TRANSFORM_DIRECTION direction = TRANSFORM_DIRECTION.Y_AXIS) { base.init(offset, direction); mScrollRect = scrollRect; }