public static TweenRotation Rotate(this Transform transform, Quaternion from, Quaternion to, float duration, bool worldSpace = true) { var eulerFrom = from.eulerAngles; var eulerTo = to.eulerAngles; var tween = UTween.Rotation(transform, eulerFrom, eulerTo, duration, worldSpace); return(tween); }
public static TweenRotation Rotate(this Transform transform, Vector3 from, Vector3 to, float duration, bool worldSpace = true) { var tween = UTween.Rotation(transform, from, to, duration, worldSpace); return(tween); }