From 4dba1aaee4f69ba762e0d4742848decaaa7a86ac Mon Sep 17 00:00:00 2001 From: Mateusz Wachowiak Date: Sat, 9 Mar 2024 13:14:04 +0100 Subject: [PATCH] rename system in fps_overlay example --- examples/dev_tools/fps_overlay.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/dev_tools/fps_overlay.rs b/examples/dev_tools/fps_overlay.rs index 94fd984764644..9658ad967f245 100644 --- a/examples/dev_tools/fps_overlay.rs +++ b/examples/dev_tools/fps_overlay.rs @@ -21,7 +21,7 @@ fn main() { }, )) .add_systems(Startup, setup) - .add_systems(Update, system) + .add_systems(Update, customize_config) .run(); } @@ -52,7 +52,7 @@ fn setup(mut commands: Commands) { ); } -fn system(input: Res>, mut overlay: ResMut) { +fn customize_config(input: Res>, mut overlay: ResMut) { if input.just_pressed(KeyCode::Digit1) { // Changing resource will affect overlay overlay.0.color = Color::srgb(1.0, 0.0, 0.0);