Долженная доля
DOTween.To(x => myfloat = x, startValue, endValue, duration);
Omadel
DOTween.To(x => myfloat = x, startValue, endValue, duration);