use bevy::prelude::*; fn main() { App::new() .add_plugins((DefaultPlugins, HelloPlugin)) .run(); } #[derive(Resource)] struct GreetTimer(Timer); #[derive(Component)] struct Name(String); #[derive(Component)] struct Person; fn add_people(mut commands: Commands) { commands.spawn((Person, Name("Elaina Proctor".to_string()))); commands.spawn((Person, Name("Renzo Hume".to_string()))); commands.spawn((Person, Name("Zayna Nieves".to_string()))); } fn update_people(mut query: Query<&mut Name, With>) { for mut name in &mut query { if name.0 == "Elaina Proctor" { name.0 = "Elaina Hume".to_string(); break; } } } fn greet_people(query: Query<&Name, With>, time:Res