Globals

Games often have static variables you wish to track across scenes. Because of this, we often end up with a long list of attributes dumped into one script. The Globals system allows developers to divide these into multiple scripts for better maintenance.

To use this system, simply create your scripts as needed and make sure they all extend from the Globals class. Then, attach the GlobalsAdder script into your scene, and at run time, all of your sub-global classes will be added.