public void TweenValue(float tweenPercent)
        {
            if (!IsTargetValid)
            {
                return;
            }

            var newValue = SmoothStep ? Mathf.SmoothStep(StartValue, TargetValue, tweenPercent) : Mathf.Lerp(StartValue, TargetValue, tweenPercent);

            OnFloatTween.Invoke(newValue);
        }
Beispiel #2
0
        public void TweenValue(float tweenPercent)
        {
            if (!IsTargetValid)
            {
                return;
            }

            var newValue = easingFunction(StartValue, TargetValue, tweenPercent);

            OnFloatTween.Invoke(newValue);
        }