disable map controls inside menu

This commit is contained in:
yuni 2024-05-13 21:43:02 +02:00
parent 6b6732bdec
commit c861df0ab4

View file

@ -41,7 +41,7 @@ impl Plugin for CameraPlugin {
app.add_systems(PostUpdate, update_mapcam_center
.before(sync::position_to_transform)
.in_set(sync::SyncSet::PositionToTransform));
app.add_systems(Update, update_map_camera.run_if(alive));
app.add_systems(Update, update_map_camera.run_if(in_control));
app.add_systems(Update, update_fov.run_if(alive));
app.add_systems(PreUpdate, apply_input_to_player);
app.insert_resource(MapCam::default());