Decrease the score slowly...

When the Player finish the level I would like to decrease of 1 the total coins number taken to 0 and at the same time add 1 to the total score

Example :

100 Coins taken
Total score 20

99 Coins taken
Total score 21

98 Coins taken
Total score 22


0 Coins taken
Total score 120

but this must take place slowly…if I use “for” cicle it is too fast !! How can I do it ?

Thank you

You can use Coroutines or InvokeRepeating.