pub fn menu_shutdown(mut commands: Commands, menu_decor: Query<Entity, With<MenuSprite>>) {
  for e in menu_decor.iter() {
    commands.entity(e).despawn_recursive();
  }
}
/// Undo everything we did in menu startup
Undo everything we did in menu startup
Undo everything we did in menu startup
pub fn menu_shutdown(mut commands: Commands, menu_decor: Query<Entity, With<MenuSprite>>) {
  for e in menu_decor.iter() {
    commands.entity(e).despawn_recursive();
  }
}
pub fn menu_shutdown ( mut commands : Commands , menu_decor : Query < Entity , With < MenuSprite > > ) { for e in menu_decor . iter ( ) { commands . entity ( e ) . despawn_recursive ( ) ; } }
Undo everything we did in menu startup
Undo everything we did in menu startup
commands
Commands
menu_decor
Query<Entity, With<MenuSprite>>
commands
Commands
menu_decor
Query<Entity, With<MenuSprite>>