I use local static variables to keep the code short and efficient. When I want to restart a layout so that the player can replay the game exactly as it was, there is no option to reset local static variables, only glocal variables.
No, I don't want to convert every local variable into a global one.
How do I rest local static variables?