dotween a float unity code example
Example 1: dottween fielofview camerain unity
cam.DOFieldOfView(targetFOV, cameraZoomSpeed).SetEase(Ease.OutSine);
Example 2: Dotween value
float to = balance + totalPayment;
DOTween.To(() => balance, x => balance = x, to, 2).OnUpdate(UpdateUI);