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