Fix missing player_goals declaration in GoalsCycleManager
Release / Build & Release (push) Successful in 8m19s

This commit is contained in:
2026-07-09 16:19:33 +08:00
parent 6506e9f416
commit 8573f8a85d
+10
View File
@@ -19,6 +19,7 @@ var is_match_active: bool = false
# Score tracking: peer_id -> score # Score tracking: peer_id -> score
var player_scores: Dictionary = {} var player_scores: Dictionary = {}
var player_goal_counts: Dictionary = {} # peer_id -> count var player_goal_counts: Dictionary = {} # peer_id -> count
var player_goals: Dictionary = {} # peer_id -> goals array
var stop_n_go_winner_id: int = -1 # Track winner for Stop n Go sorting var stop_n_go_winner_id: int = -1 # Track winner for Stop n Go sorting
# Reference to main scene # Reference to main scene
@@ -521,3 +522,12 @@ func get_time_remaining() -> float:
func reset_scores(): func reset_scores():
player_scores.clear() player_scores.clear()
_update_leaderboard() _update_leaderboard()
func reset() -> void:
is_match_active = false
is_cycle_active = false
set_process(false)
player_scores.clear()
player_goal_counts.clear()
player_goals.clear()
stop_n_go_winner_id = -1