Пример #1
0
 private void Awake()
 {
     if (MusicController.instance == null)
     {
         MusicController.instance = this;
         GameObject.DontDestroyOnLoad(this.gameObject);
     }
     else
     {
         MusicController.Destroy(this.gameObject);
     }
 }