refactor: Changed BpmTimer into Resource

This commit is contained in:
Alexey 2026-04-20 15:14:40 +03:00
commit f3b2d0313e
5 changed files with 11 additions and 30 deletions

View file

@ -26,13 +26,8 @@ pub fn handle_input(
Option<&mut states::Awaiting>,
)>,
timer_query: Query<&BpmTimer>,
timer: Res<BpmTimer>,
) {
let Some(timer) = timer_query.iter().next() else {
error!("No BpmTimer provided");
return;
};
let bpm = timer.get_bpm();
for (