remove wakeup sound at start

This commit is contained in:
yuni 2024-03-28 20:54:28 +01:00
parent 0b193e53ad
commit e1bcb9bb7a

View file

@ -10,7 +10,7 @@ const ASSET_CONNECT: &str = "sounds/connect.ogg";
const ASSET_BGM: &str = "music/dead-space-style-ambient-music.ogg"; const ASSET_BGM: &str = "music/dead-space-style-ambient-music.ogg";
const ASSET_THRUSTER: &str = "sounds/thruster.ogg"; const ASSET_THRUSTER: &str = "sounds/thruster.ogg";
const ASSET_ROCKET: &str = "sounds/rocket.ogg"; const ASSET_ROCKET: &str = "sounds/rocket.ogg";
const ASSET_WAKEUP: &str = "sounds/wakeup.ogg"; //const ASSET_WAKEUP: &str = "sounds/wakeup.ogg";
const ASSET_BIKESTART: &str = "sounds/bikestart.ogg"; const ASSET_BIKESTART: &str = "sounds/bikestart.ogg";
pub struct AudioPlugin; pub struct AudioPlugin;
@ -64,14 +64,14 @@ pub fn setup(
}, },
}, },
)); ));
if !settings.mute_sfx { //if !settings.mute_sfx {
commands.spawn(( // commands.spawn((
AudioBundle { // AudioBundle {
source: asset_server.load(ASSET_WAKEUP), // source: asset_server.load(ASSET_WAKEUP),
settings: PlaybackSettings::DESPAWN, // settings: PlaybackSettings::DESPAWN,
}, // },
)); // ));
} //}
commands.spawn(( commands.spawn((
ComponentThrusterSound, ComponentThrusterSound,
AudioBundle { AudioBundle {