internal static void RotateLocal <U>(SimpleTweenAction <U, Quaternion> tweenAction) where U : Actor { if (tweenAction.Options.LerpType == LerpType.Slerp) { tweenAction.Target.LocalOrientation = Quaternion.Slerp(tweenAction.FromValue, tweenAction.ToValue, tweenAction.Percentage); } else { tweenAction.Target.LocalOrientation = Quaternion.Lerp(tweenAction.FromValue, tweenAction.ToValue, tweenAction.Percentage); } }
internal static void Nothing <U>(SimpleTweenAction <U> tweenAction) where U : Actor { }
internal static void ScaleLocal <U>(SimpleTweenAction <U, Vector3> tweenAction) where U : Actor { tweenAction.Target.LocalScale = Vector3.Lerp(tweenAction.FromValue, tweenAction.ToValue, tweenAction.Percentage); }