From 731e9a955dbdf10f7e8860936dd71977ce8f8bf3 Mon Sep 17 00:00:00 2001 From: Martin Indra Date: Sat, 22 Jul 2023 18:28:05 +0200 Subject: [PATCH] WIP --- crates/audio/src/music.rs | 16 +++++++++------- crates/camera/src/distance.rs | 2 +- crates/menu/src/lib.rs | 3 ++- 3 files changed, 12 insertions(+), 9 deletions(-) diff --git a/crates/audio/src/music.rs b/crates/audio/src/music.rs index d845a806c..9fb02ad98 100644 --- a/crates/audio/src/music.rs +++ b/crates/audio/src/music.rs @@ -1,4 +1,4 @@ -use bevy::{asset::LoadState, prelude::*}; +use bevy::{asset::LoadState, audio::Volume, prelude::*}; use de_conf::Configuration; use de_core::state::AppState; use iyes_progress::prelude::*; @@ -12,7 +12,7 @@ impl Plugin for MusicPlugin { Update, load.track_progress().run_if(in_state(AppState::AppLoading)), ) - .add_systems(Update, start.in_schedule(OnExit(AppState::AppLoading))); + .add_systems(OnExit(AppState::AppLoading), start); } } @@ -31,12 +31,14 @@ fn load(server: Res, tracks: Res) -> Progress { } } -fn start(audio: Res