remove wakeup sound at start
This commit is contained in:
parent
0b193e53ad
commit
e1bcb9bb7a
18
src/audio.rs
18
src/audio.rs
|
@ -10,7 +10,7 @@ const ASSET_CONNECT: &str = "sounds/connect.ogg";
|
|||
const ASSET_BGM: &str = "music/dead-space-style-ambient-music.ogg";
|
||||
const ASSET_THRUSTER: &str = "sounds/thruster.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";
|
||||
|
||||
pub struct AudioPlugin;
|
||||
|
@ -64,14 +64,14 @@ pub fn setup(
|
|||
},
|
||||
},
|
||||
));
|
||||
if !settings.mute_sfx {
|
||||
commands.spawn((
|
||||
AudioBundle {
|
||||
source: asset_server.load(ASSET_WAKEUP),
|
||||
settings: PlaybackSettings::DESPAWN,
|
||||
},
|
||||
));
|
||||
}
|
||||
//if !settings.mute_sfx {
|
||||
// commands.spawn((
|
||||
// AudioBundle {
|
||||
// source: asset_server.load(ASSET_WAKEUP),
|
||||
// settings: PlaybackSettings::DESPAWN,
|
||||
// },
|
||||
// ));
|
||||
//}
|
||||
commands.spawn((
|
||||
ComponentThrusterSound,
|
||||
AudioBundle {
|
||||
|
|
Loading…
Reference in a new issue