Implement the main menu despawn function
This commit is contained in:
@@ -38,6 +38,11 @@ fn spawn_menu(mut commands: Commands) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
fn despawn_menu() {
|
fn despawn_menu(
|
||||||
todo!();
|
mut commands: Commands,
|
||||||
|
to_despawn: Query<Entity, With<TitleUI>>,
|
||||||
|
) {
|
||||||
|
for entity in &to_despawn {
|
||||||
|
commands.entity(entity).despawn();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user