player.gd refactor progress

This commit is contained in:
2025-12-03 18:16:00 +08:00
parent ead155afed
commit a97a8e68f6
22 changed files with 1461 additions and 596 deletions
+2 -2
View File
@@ -80,7 +80,7 @@ func host_game():
return
print("Hosting match via Nakama Bridge...")
var result = await bridge.create_match()
if result.is_exception():
if result and result.is_exception():
emit_signal("match_join_error", result.get_exception().message)
func join_game(match_id: String):
@@ -89,7 +89,7 @@ func join_game(match_id: String):
return
print("Joining match: ", match_id)
var result = await bridge.join_match(match_id)
if result.is_exception():
if result and result.is_exception():
emit_signal("match_join_error", result.get_exception().message)
# --- Callbacks ---