Skip to content

Commit

Permalink
Fix ui clearing
Browse files Browse the repository at this point in the history
  • Loading branch information
rewin123 committed Dec 8, 2023
1 parent a7b689d commit 113af0d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/debug_diagnostic.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use bevy::prelude::*;

use crate::{safe_area::SheepCounter, sheep::StartSheepCount, GameSet, GameState};
use crate::{safe_area::SheepCounter, sheep::StartSheepCount, GameSet, GameState, GameStuff};

const FONT_SIZE: f32 = 24.0;

Expand Down Expand Up @@ -49,7 +49,8 @@ pub fn setup_diagnostic_panel(mut commands: Commands) {
background_color: BackgroundColor(Color::rgba(0.0, 0.0, 0.0, 0.5)),
..default()
})
.insert(DiagnosticPanel);
.insert(DiagnosticPanel)
.insert(GameStuff);
}

#[derive(Component)]
Expand Down
3 changes: 2 additions & 1 deletion src/level_ui.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use bevy::prelude::*;

use crate::storyteller::LevelTimer;
use crate::{storyteller::LevelTimer, GameStuff};

pub struct LevelUiPlugin;

Expand Down Expand Up @@ -47,6 +47,7 @@ fn create_level_ui_system(
..default()
},
LevelUi,
GameStuff
))
.with_children(|parent| {
parent.spawn((
Expand Down

0 comments on commit 113af0d

Please sign in to comment.