unity dotween sequence time code example
Example: Dotween value
float to = balance + totalPayment;
DOTween.To(() => balance, x => balance = x, to, 2).OnUpdate(UpdateUI);
float to = balance + totalPayment;
DOTween.To(() => balance, x => balance = x, to, 2).OnUpdate(UpdateUI);