Fix missing player_goals declaration in GoalsCycleManager

This commit is contained in:
2026-07-09 16:19:33 +08:00
parent 6506e9f416
commit 7c82abc0e2
+10
View File
@@ -19,6 +19,7 @@ var is_match_active: bool = false
# Score tracking: peer_id -> score
var player_scores: Dictionary = {}
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
# Reference to main scene
@@ -521,3 +522,12 @@ func get_time_remaining() -> float:
func reset_scores():
player_scores.clear()
_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