pub fn on_event<T>() -> impl FnMut(EventReader<'_, '_, T>)where T: Event,
Generates a Condition-satisfying closure that returns true if there are any new events of the given type since it was last called.
Condition
true