I’d like to be able to use GameTime without explicitly typing its name each time in all of my methods’ parameters. It just doesn’t look so good in code. How can I do that?
I’d like to be able to use GameTime without explicitly typing its name each
Share
I just found out that
GameTimedoesn’t change throughout main Update method execution, so I can safely use a copy of it in a local GameTime variable, like so: