correcting issue
Some checks failed
Rust Checks / checks (push) Failing after 5s

This commit is contained in:
Raphaël 2024-03-10 19:41:43 +01:00
parent ba953a4fde
commit ced2db583a

View file

@ -33,7 +33,6 @@ struct MenuEntity;
/// Display the UI of the menu to host a game or join one. /// Display the UI of the menu to host a game or join one.
fn menu_ui(mut commands: Commands, asset_server: Res<AssetServer>) { fn menu_ui(mut commands: Commands, asset_server: Res<AssetServer>) {
commands.spawn(Camera2dBundle::default());
commands commands
.spawn(NodeBundle { .spawn(NodeBundle {
@ -237,7 +236,7 @@ fn main_node(main_node: &mut ChildBuilder<'_, '_, '_>, asset_server: &Res<AssetS
}) })
.insert(MenuEntity); .insert(MenuEntity);
create_button( create_button(
CurrentScene::Lobby, CurrentScene::Game,
join, join,
HoveredTexture { HoveredTexture {
texture: asset_server.load("join.png"), texture: asset_server.load("join.png"),