/// <summary> /// Returns a Tween instance that is configured to animate a Transform.position property /// </summary> /// <param name="component">The component to be animated</param> /// <param name="useLocalPosition">If set to TRUE, the Transform.localPosition property will be used instead of Transform.position</param> public static Tween <Vector3> TweenPosition(this Component component, bool useLocalPosition) { return(TweenTransformExtensions.TweenPosition(component.transform, useLocalPosition)); }
public static Tween <Vector3> Position(Transform transform, bool useLocalPosition) { return(TweenTransformExtensions.TweenPosition(transform, useLocalPosition)); }
/// <summary> /// Returns a Tween instance that is configured to animate a Transform.position property /// </summary> /// <param name="component">The component to be animated</param> public static Tween <Vector3> TweenPosition(this Component component) { return(TweenTransformExtensions.TweenPosition(component.transform, false)); }