コード例 #1
0
 /// <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));
 }
コード例 #2
0
 public static Tween <Vector3> Position(Transform transform, bool useLocalPosition)
 {
     return(TweenTransformExtensions.TweenPosition(transform, useLocalPosition));
 }
コード例 #3
0
 /// <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));
 }