Example #1
0
 private void OnDestroy()
 {
     if (this.m_AnimalSoundsAudioSource)
     {
         UnityEngine.Object.Destroy(this.m_AnimalSoundsAudioSource.gameObject);
     }
     AmbientAudioSystem.Instance = null;
 }
Example #2
0
 private void Awake()
 {
     DebugUtils.Assert(AmbientAudioSystem.Instance == null, true);
     AmbientAudioSystem.Instance = this;
     this.Initialize();
 }