Tuesday, January 16, 2018
Here's a little utility script for Unity. Since I made it I've used it a few times in my prototype, so thought I'd share.
It's basically a way to get the time since something happened, made to be a member of a class/component. It's so simple that I'm guessing it already exists in a form that I've missed.
It'll act like a float, but it'll change over time.
It's a struct so it doesn't create garbage.