/// <summary> /// Generic method to handle all rotation transitions. /// </summary> public static void TweenRotation(GameObject gameObject, Quaternion targetRotation, float duration, Easing easing, bool destroy, bool isRelative, string cubicBezier) { if (CrayonRunner.Instance == null) { Debug.LogWarning(CrayonMessages.PrefabMissing); } else { CrayonRunner.Instance.Run(CrayonTweenCoroutines.TweenRotationCoroutine(gameObject, targetRotation, duration, easing, destroy, isRelative, cubicBezier)); } }
/// <summary> /// Generic method to handle all rotation transitions. /// </summary> public static void TweenRotation(GameObject gameObject, Quaternion targetRotation, float duration, Easing easing, bool destroy, bool isRelative, string cubicBezier) { CrayonRunner.Instance.Run(CrayonTweenCoroutines.TweenRotationCoroutine(gameObject, targetRotation, duration, easing, destroy, isRelative, cubicBezier)); }