use bevy::prelude::*; use bevy_scoreboard::{Scoreboard, ScoreboardPlugin}; fn main() { App::new() .add_plugins((DefaultPlugins, ScoreboardPlugin)) .insert_resource(ScoreTimer(Timer::from_seconds(1.0, TimerMode::Repeating))) .add_systems(Startup, startup) .add_systems(Update, update_scores) .run(); } #[derive(Resource)] struct ScoreTimer(Timer); fn update_scores( mut score_timer: ResMut, mut scoreboard: ResMut, time: Res