add storage for player info

This commit is contained in:
2025-02-12 20:55:32 +10:00
parent dd429beb5b
commit bab7bea373
2 changed files with 31 additions and 1 deletions

View File

@@ -20,6 +20,7 @@ func _display_error(message: String) -> void:
func _on_host_button_pressed() -> void:
Networker.set_local_player_info(_name_edit.text)
Networker.host_game()
@@ -32,6 +33,7 @@ func _on_join_button_pressed() -> void:
_join_button.disabled = true
_host_button.disabled = true
Networker.set_local_player_info(_name_edit.text)
Networker.join_game(_ip_edit.text)