diff --git a/examples/ecs/generic_system.rs b/examples/ecs/generic_system.rs index 76209cd109..e873cb5ae8 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::*; #[derive(Debug, Default, Clone, Copy, Eq, PartialEq, Hash, States)] enum AppState { @@ -40,6 +41,7 @@ fn main() { ( print_text_system, transition_to_in_game_system.run_if(in_state(AppState::MainMenu)), + system::, ), ) // Cleanup systems. @@ -61,6 +63,8 @@ fn setup_system(mut commands: Commands) { TextToPrint("I will always print".to_string()), LevelUnload, )); + + commands.insert_resource(ResourceC { data: 3 }); } fn print_text_system(time: Res