game states cleanup

This commit is contained in:
2026-09-19 11:32:24 +02:00
parent f2f3e5c76c
commit 05616061ed
5 changed files with 19 additions and 12 deletions
+2 -1
View File
@@ -127,6 +127,7 @@ impl Plugin for DebugPlugin {
Update,
(draw_view_frame, follow_player_debug, toggle_debug_camera)
.run_if(in_state(GameState::InGame)),
);
)
.add_systems(OnExit(GameState::InGame), cleanup_debug);
}
}