void Awake() { if (_gameSoundManager == null) { _gameSoundManager = this; } //panel=GameObject.FindGameObjectWithTag("Panel"); }
// Use this for initialization void Start () { if (instance == null) instance = this; DontDestroyOnLoad(gameObject); gameAudioSource = GetComponents<AudioSource>()[0]; sfxAudioSource = GetComponents<AudioSource>()[1]; playTitleTrack(); }