// Stops a sound / music public void Stop(AirmanLevelSounds soundToPlay) { switch (soundToPlay) { case AirmanLevelSounds.STAGE: stageMusic.Stop(); break; case AirmanLevelSounds.STAGE_END: stageEndMusic.Stop(); break; case AirmanLevelSounds.LEAVE_LEVEL: megamanLeavesStageSound.Stop(); break; case AirmanLevelSounds.DEATH: deathSound.Stop(); break; case AirmanLevelSounds.HURTING: hurtingSound.Stop(); break; case AirmanLevelSounds.LANDING: landingSound.Stop(); break; case AirmanLevelSounds.SHOOTING: shootingSound.Stop(); break; case AirmanLevelSounds.BOSS_MUSIC: bossMusic.Stop(); break; case AirmanLevelSounds.BOSS_DOOR: bossDoorSound.Stop(); break; case AirmanLevelSounds.BOSS_HURTING: bossHurtingSound.Stop(); break; case AirmanLevelSounds.HEALTHBAR_FILLING: healthBarFillSound.Stop(); break; } }
// Stops a sound / music public void Stop(AirmanLevelSounds soundToPlay) { switch(soundToPlay) { case AirmanLevelSounds.STAGE: stageMusic.Stop(); break; case AirmanLevelSounds.STAGE_END: stageEndMusic.Stop(); break; case AirmanLevelSounds.LEAVE_LEVEL: megamanLeavesStageSound.Stop(); break; case AirmanLevelSounds.DEATH: deathSound.Stop(); break; case AirmanLevelSounds.HURTING: hurtingSound.Stop(); break; case AirmanLevelSounds.LANDING: landingSound.Stop(); break; case AirmanLevelSounds.SHOOTING: shootingSound.Stop(); break; case AirmanLevelSounds.BOSS_MUSIC: bossMusic.Stop(); break; case AirmanLevelSounds.BOSS_DOOR: bossDoorSound.Stop(); break; case AirmanLevelSounds.BOSS_HURTING: bossHurtingSound.Stop(); break; case AirmanLevelSounds.HEALTHBAR_FILLING: healthBarFillSound.Stop(); break; } }