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