-
I'm a very early beginner with //
// From the official Bevy examples...
//
fn greet_people(
time: Res<Time>, mut timer: ResMut<GreetTimer>, query: Query<&Name, With<Person>>) {
// update our timer with the time elapsed since the last update
// if that caused the timer to finish, we say hello to everyone
if timer.0.tick(time.delta()).just_finished() {
for name in &query {
println!("hello {}!", name.0);
}
}
} Originally How does |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
This post by @PROMETHIA-27 might help shed some light. 🙂 |
Beta Was this translation helpful? Give feedback.
This post by @PROMETHIA-27 might help shed some light. 🙂