generated from 2ndbeam/bevy-template
refactor: Changed BpmTimer into Resource
This commit is contained in:
parent
254704135c
commit
f3b2d0313e
5 changed files with 11 additions and 30 deletions
|
|
@ -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 (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue