From d66a6cad35cf782b0e80b3a6746d080955e24635 Mon Sep 17 00:00:00 2001 From: Caleb Boylan Date: Sat, 4 Sep 2021 07:52:01 -0700 Subject: [PATCH] Fix breakout example scoreboard --- examples/game/breakout.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/game/breakout.rs b/examples/game/breakout.rs index 26ef9bdcbe0c7..700c6b386925a 100644 --- a/examples/game/breakout.rs +++ b/examples/game/breakout.rs @@ -211,7 +211,7 @@ fn ball_movement_system(mut ball_query: Query<(&Ball, &mut Transform)>) { fn scoreboard_system(scoreboard: Res, mut query: Query<&mut Text>) { let mut text = query.single_mut().unwrap(); - text.sections[0].value = format!("Score: {}", scoreboard.score); + text.sections[1].value = format!("{}", scoreboard.score); } fn ball_collision_system(