public static MoveToTween RunZ(GameObject item, float z, float duration) { MoveToTween tween = Create <MoveToTween>(item, duration); tween._targetZ = z; return(tween); }
public static MoveToTween Run(GameObject item, Vector3 position, float duration) { MoveToTween tween = Create <MoveToTween>(item, duration); tween._targetPosition = position; return(tween); }
public static MoveToTween Run(RectTransform rectTransform, Vector3 anchoredPosition, float duration) { MoveToTween tween = Create <MoveToTween>(rectTransform.gameObject, duration); tween._isAnchoredPosition = true; tween._targetPosition = anchoredPosition; tween._rectTransform = rectTransform; return(tween); }