Creating lobby updates #8
@ -29,6 +29,7 @@ func _ready() -> void:
|
||||
|
||||
func _on_host():
|
||||
NetworkManager.host_lobby()
|
||||
show_lobbies_button.disabled = true
|
||||
|
||||
|
||||
func _on_leave():
|
||||
@ -60,6 +61,11 @@ func _on_lobbies_received(these_lobbies: Array):
|
||||
# Add the new lobby to the list
|
||||
lobby_list_box.add_child(lobby_button)
|
||||
|
||||
|
||||
|
||||
func join_lobby(lobby_id: int):
|
||||
NetworkManager.join_lobby(lobby_id)
|
||||
|
||||
|
||||
func _on_lobby_created(lobby_id: int):
|
||||
print("Lobby created")
|
||||
|
Loading…
Reference in New Issue
Block a user