Skip to content

Commit

Permalink
rename system in fps_overlay example
Browse files Browse the repository at this point in the history
  • Loading branch information
matiqo15 committed Mar 9, 2024
1 parent 319744d commit 4dba1aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/dev_tools/fps_overlay.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ fn main() {
},
))
.add_systems(Startup, setup)
.add_systems(Update, system)
.add_systems(Update, customize_config)
.run();
}

Expand Down Expand Up @@ -52,7 +52,7 @@ fn setup(mut commands: Commands) {
);
}

fn system(input: Res<ButtonInput<KeyCode>>, mut overlay: ResMut<FpsOverlayConfig>) {
fn customize_config(input: Res<ButtonInput<KeyCode>>, mut overlay: ResMut<FpsOverlayConfig>) {
if input.just_pressed(KeyCode::Digit1) {
// Changing resource will affect overlay
overlay.0.color = Color::srgb(1.0, 0.0, 0.0);
Expand Down

0 comments on commit 4dba1aa

Please sign in to comment.