Game Manager is duplicated...

Hy Guys ! I have a little problem with my project:

I have a game object with my GameManager script ( with “DontDestroyOnLoad (gameObject);” inside ).
Every time that i start the levels and I go back at the main menu the GameManager is duplicated ! I think that the phone overheats because the many game object in the hierarchy ! Please help me to resolve this.
Thank you guys !

Hi, there are many duplicate questions/answers on this topic already; here’s a code sample as well

https://unity3d.com/learn/tutorials/projects/2d-roguelike-tutorial/writing-game-manager

(scroll down GameManager Awake code for example)

Also Google Singleton.