game states cleanup
This commit is contained in:
+1
-1
@@ -35,7 +35,7 @@ fn spawn_depth_text(mut commands: Commands) {
|
|||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update depth score text
|
// Update depth score texts
|
||||||
fn update_depth_text(depth: Res<Depth>, texts: Query<&mut Text, With<DepthText>>) {
|
fn update_depth_text(depth: Res<Depth>, texts: Query<&mut Text, With<DepthText>>) {
|
||||||
for mut text in texts {
|
for mut text in texts {
|
||||||
text.0 = format!("Score: {}", (depth.0 / 100.0).floor());
|
text.0 = format!("Score: {}", (depth.0 / 100.0).floor());
|
||||||
|
|||||||
Reference in New Issue
Block a user