From e049ccf8b3ae327135e5d23b592c8eaa556f6d76 Mon Sep 17 00:00:00 2001 From: Aevyrie Roessler Date: Sun, 29 Jan 2023 00:11:47 -0800 Subject: [PATCH] typos and warnings --- examples/demo.rs | 2 +- src/camera.rs | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/examples/demo.rs b/examples/demo.rs index 1e77e47..75e08d6 100644 --- a/examples/demo.rs +++ b/examples/demo.rs @@ -30,7 +30,7 @@ fn setup( ..default() }, GridCell::::default(), // All spatial entities need this component - FloatingOrigin, // Important: marks this as the entity to use as teh floating origin + FloatingOrigin, // Important: marks this as the entity to use as the floating origin CameraController { max_speed: 10e12, smoothness: 0.9, diff --git a/src/camera.rs b/src/camera.rs index 9da453c..f0c42eb 100644 --- a/src/camera.rs +++ b/src/camera.rs @@ -9,12 +9,12 @@ use bevy::{ pub struct CameraControllerPlugin; impl Plugin for CameraControllerPlugin { fn build(&self, app: &mut App) { - app.init_resource::() - .add_system(default_camera_inputs.before(camera_controller)) - .add_system_to_stage( - CoreStage::PostUpdate, - camera_controller.after(TransformSystem::TransformPropagate), - ); + app.init_resource::().add_system_set_to_stage( + CoreStage::PostUpdate, + SystemSet::new() + .with_system(default_camera_inputs.before(camera_controller)) + .with_system(camera_controller.after(TransformSystem::TransformPropagate)), + ); } }