Categories
Game Creation Mastering Development

How can I access a variable on a script in another scene that I made it dontdestroyonload?

I need to get access to the variable flag loading from some script in another scene. The variable loading in my main menu scene and I need to access it in scripts in my game scene. I’m not sure if using dontdestroyonload in this case is the right way and I don’t want to make […]