Master script

When it comes to a master script, what is a good structure? My master pauses the game anables or disabled scripts, lights, and gameobjects. Also controls the menu, game time character stats and day and night modes.
So i was wondering if one of the pro’s would throw some theory on designing a good game master script?

What should go into it?

Felt this question was too script related to go in the gossip section. Cause the logic behind a good master script may help many coders

What is a master script?

In Object Oriented structures, like Unity, usually you want the code encapsulated where it is used. In fact, Unity makes this happen simply by using the tools and workflows as intended.

I understand the use for global constants. Settings which help adjust the game from a single global place - like a config or environment file.

I made a Globals game object and attached various constants scripts to it, the stored references when I need access to one in another script.

I wanted this on a game object because it serves as an interface in the inspector to adjust things for the scene.

…but a ‘master script’? Perhaps if you provided a particular usage it would make it more clear why you would need such a thing?

I also use such a script to control game and ingame Menus, general logic and ai helper, global enabling and disabling, environmental stuff and such control.