public void StopSoundAll() { if (sounds != null) { List <ArrayMap.Entry> list = sounds.ToList(); for (int i = 0; i < list.Count; i++) { ArrayMap.Entry sound = list[i]; if (sound != null) { AudioEffect ass = (AudioEffect)sound.GetValue(); if (ass != null) { ass.StopAudioEffect(); } } } } }