void OnDestroy() { for (int i = 0, iLen = ambientSounds.Count; i < iLen; ++i) { AmbientSound ambientSound = ambientSounds[i]; ambientSound.Dispose(); } }