From 430938bba5382ea5f0529d4a82fa56c10201de7b Mon Sep 17 00:00:00 2001 From: Idan Arye Date: Mon, 25 Mar 2024 16:29:37 +0200 Subject: [PATCH] Fix the other demos --- demos/src/bin/platformer_2d.rs | 4 ++++ demos/src/bin/shooter_like.rs | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/demos/src/bin/platformer_2d.rs b/demos/src/bin/platformer_2d.rs index efd71a1fd..252ec0658 100644 --- a/demos/src/bin/platformer_2d.rs +++ b/demos/src/bin/platformer_2d.rs @@ -17,6 +17,7 @@ use bevy_tnua_xpbd2d::*; #[cfg(feature = "xpbd2d")] use bevy_xpbd_2d::{prelude as xpbd, prelude::*}; +use tnua_demos_crate::app_setup_options::AppSetupConfiguration; use tnua_demos_crate::character_control_systems::platformer_control_systems::{ apply_platformer_controls, CharacterMotionConfigForPlatformerDemo, FallingThroughControlScheme, }; @@ -32,6 +33,9 @@ fn main() { let mut app = App::new(); app.add_plugins(DefaultPlugins); + let app_setup_configuration = AppSetupConfiguration::from_environment(); + app.insert_resource(app_setup_configuration.clone()); + #[cfg(feature = "rapier2d")] { app.add_plugins(RapierPhysicsPlugin::::default()); diff --git a/demos/src/bin/shooter_like.rs b/demos/src/bin/shooter_like.rs index 737bbd570..fca35329b 100644 --- a/demos/src/bin/shooter_like.rs +++ b/demos/src/bin/shooter_like.rs @@ -18,6 +18,7 @@ use bevy_tnua_xpbd3d::*; #[cfg(feature = "xpbd3d")] use bevy_xpbd_3d::{prelude as xpbd, prelude::*}; +use tnua_demos_crate::app_setup_options::AppSetupConfiguration; use tnua_demos_crate::character_animating_systems::platformer_animating_systems::{ animate_platformer_character, AnimationState, }; @@ -38,6 +39,9 @@ fn main() { let mut app = App::new(); app.add_plugins(DefaultPlugins); + let app_setup_configuration = AppSetupConfiguration::from_environment(); + app.insert_resource(app_setup_configuration.clone()); + #[cfg(feature = "rapier3d")] { app.add_plugins(RapierPhysicsPlugin::::default());