예제 #1
0
 /// <summary>
 /// Returns a Tween instance that is configured to animate a Transform.eulerAngles property
 /// </summary>
 /// <param name="component">The component to be animated</param>
 /// <param name="useShortestPath">If set to TRUE, the rotation will follow the shortest path.</param>
 /// <param name="useLocalRotation">If set to TRUE, then Transform.localEulerAngles will be animated instead of Transform.eulerAngles</param>
 public static Tween <Vector3> TweenRotation(this Component component, bool useShortestPath, bool useLocalRotation)
 {
     return(TweenTransformExtensions.TweenRotation(component.transform, useShortestPath, useLocalRotation));
 }
예제 #2
0
 public static Tween <Vector3> Rotation(Transform transform, bool useShortestPath, bool useLocalRotation)
 {
     return(TweenTransformExtensions.TweenRotation(transform, useShortestPath, useLocalRotation));
 }
예제 #3
0
 /// <summary>
 /// Returns a Tween instance that is configured to animate a Transform.eulerAngles property
 /// </summary>
 /// <param name="component">The component to be animated</param>
 public static Tween <Vector3> TweenRotation(this Component component)
 {
     return(TweenTransformExtensions.TweenRotation(component.transform, true, false));
 }
예제 #4
0
 public static Tween <Vector3> Rotation(Transform transform)
 {
     return(TweenTransformExtensions.TweenRotation(transform));
 }