// Use this for initialization void Awake() { if (Instance != null && Instance != this) { Destroy(gameObject); } Instance = this; // Furthermore we make sure that we don't destroy between scenes (this is optional) DontDestroyOnLoad(gameObject); }