public void CrossFadeFloat(TweenRunner <FloatTween> tweenRunner, float duration, float start, float end, UnityAction <float> callback, UnityAction endCallback) { var floatTween = new FloatTween { duration = duration, startValue = start, targetValue = end }; floatTween.AddOnChangedCallback(callback); if (endCallback != null) { floatTween.AddOnEndCallback(endCallback); } floatTween.ignoreTimeScale = true; tweenRunner.StartTween(floatTween); }