private void Awake() // This is to keep the music player going when loading between scenes. { if (instance == null) { instance = this; DontDestroyOnLoad(gameObject); } else if (instance != this) { Destroy(gameObject); } }
/////////////////////////////////////////////////////// private void Awake() { //Set Static Singleton Self Refference Instance = this; }