From 11ef39688cbe7db85fcfbaf8c3174e96d9d24c9e Mon Sep 17 00:00:00 2001 From: Space Nerd <71553327+SpaceNerde@users.noreply.github.com> Date: Sun, 10 Dec 2023 15:53:17 +0100 Subject: [PATCH] fix scene switch problem and code cleanup --- src/menu.rs | 7 ++----- src/player.rs | 7 +++---- src/scene_handler.rs | 6 ------ 3 files changed, 5 insertions(+), 15 deletions(-) diff --git a/src/menu.rs b/src/menu.rs index 03d2f53..b590e75 100644 --- a/src/menu.rs +++ b/src/menu.rs @@ -1,9 +1,7 @@ use crate::core_components::ChangeState; use crate::loading::TextureAssets; use crate::GameState; -use crate::scene_handler::MenuCamera; use bevy::prelude::*; -use bevy_voxel_world::prelude::*; pub struct MenuPlugin; @@ -38,7 +36,6 @@ struct Menu; fn setup_menu( mut commands: Commands, textures: Res, - mut game_camera_query: Query<&mut Camera, With>, ) { info!("menu"); commands @@ -196,14 +193,14 @@ fn click_play_button( ), (Changed, With