Awake Method Called Twice

I am working with a main script that calls and creates a singleton instance. However the issue I am having is that this awake method gets called multiple times.

The Awake method is being called at the start of the project once, however once I stop the game it runs the awake method one more time after the singleton is destroyed and creates a new one.

so i keep getting extra singleton instance, eg. Singleton is destroyed but at the very end it runs that Awake method a second time when the app quits this continuously generating more instances every time i test.

My guess is that you used ExecuteInEditMode which forces tha script to run on “both sides”, in run-mode and in edit-mode. Every transition from one mode into another the whole initialization-chain is executed. When you start the game Awake gets called in run-mode and when you stop the game you enter the edit-mode and Awake gets called again.