use bevy::prelude::*; struct MyEvent { pub message: String, } fn main() { App::build() .add_default_plugins() .add_event::() .add_system(event_trigger_system()) .add_system_init(event_listener_system) .run(); } // sends MyEvent every second fn event_trigger_system() -> Box { let mut elapsed = 0.0; SystemBuilder::new("event_trigger") .read_resource::