diff --git a/examples/ecs/generic_system.rs b/examples/ecs/generic_system.rs index 7f69ac75f0..f55bc440ce 100644 --- a/examples/ecs/generic_system.rs +++ b/examples/ecs/generic_system.rs @@ -10,6 +10,7 @@ //! or use bevy::prelude::*; +use system_param_in_associated_type::*; use system_with_generic_system_param::*; #[derive(Debug, Default, Clone, Copy, Eq, PartialEq, Hash, States)] @@ -43,6 +44,7 @@ fn main() { transition_to_in_game_system.run_if(in_state(AppState::MainMenu)), system_with_generic::>, system_with_generic::>, + system::, ), ) // Cleanup systems. @@ -64,6 +66,10 @@ fn setup_system(mut commands: Commands) { TextToPrint("I will always print".to_string()), LevelUnload, )); + + commands.insert_resource(ResourceA(1)); + commands.insert_resource(ResourceB(2)); + commands.insert_resource(ResourceC { data: 3 }); } fn print_text_system(time: Res