コード例 #1
0
 /// <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));
     }
 }
コード例 #2
0
 /// <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));
 }