/* * FUNCTION: Stops all sounds except background music */ public void stopAllSounds() { for (int i = 0; i < CharacterSounds.GetValues(typeof(CharacterSounds)).Length; i++) { asCharacterSounds [i].Stop(); } for (int i = 0; i < PowerupSounds.GetValues(typeof(PowerupSounds)).Length; i++) { asPowerupSounds [i].Stop(); } for (int i = 0; i < MenuSounds.GetValues(typeof(MenuSounds)).Length; i++) { asMenuSounds [i].Stop(); } for (int i = 0; i < EnemySounds.GetValues(typeof(EnemySounds)).Length; i++) { asEnemySounds [i].Stop(); } bFootstepsPlaying = false; }