game states cleanup
This commit is contained in:
+2
-1
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user