/// <summary> /// Do not use, internal /// </summary> public void JumpToStart() { switch (mode) { case Mode.anchorPosition: rect.anchoredPosition = start_pos; break; case Mode.OffsetAnimation: startOffset.ApplyToRect(rect); break; default: break; } }
/// <summary> /// Do not use, internal /// </summary> public void JumpToEnd() { switch (mode) { case Mode.anchorPosition: rect.anchoredPosition = end_pos; break; case Mode.OffsetAnimation: endOffset.ApplyToRect(rect); break; default: break; } }