Using Invoke to manage speed changes in Delivery Driver

Hi,
I just wanted to share with you how I used Invoke to manage slowing down and speeding up in Delivery Driver project. It seemed to me like a nice way to reset the effect after x seconds. Earlier I had a version with subtracting deltaTime from effectTime each frame and turning it off when it hits 0… but the new version seems much cleaner. What do you think?

image

(if for some reason it is not recomended to use it like this please let me know)

2 Likes

yep exactly what i did here, except i looked it up online and found how to lol

Privacy & Terms