I have a script that is made to runruns when the game is loading. That script setsets the resolutionsresolution, fullscreen, and loads other screen and important settings and it applies them.
I
I have the script attached to a gameObjectgameObject in the main screen that have some game and scene scripts.
The
The problem is that everytime that you return to the main scene, that script runs again and causecausing several bugs.
So,Is there is a way to run a script only at game startup?