hide win and lose screens when starting a new day
This commit is contained in:
@@ -110,6 +110,13 @@ impl GameManager {
|
||||
|
||||
if index >= self.days.len() as i32 {
|
||||
self.cleanup_level();
|
||||
if let Some(s) = &mut self.win_screen {
|
||||
s.set_visible(false);
|
||||
}
|
||||
if let Some(s) = &mut self.lose_screen {
|
||||
s.set_visible(false);
|
||||
}
|
||||
|
||||
if let Some(s) = &mut self.game_complete_screen {
|
||||
s.set_visible(true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user