fixed pick at path correct jingle playing multiple times

This commit is contained in:
JHDev2006
2025-09-19 20:32:05 +01:00
parent a93f19c506
commit 68547a1d76
2 changed files with 7 additions and 4 deletions

View File

@@ -4,5 +4,6 @@ extends Node2D
var crossed := false
func on_player_entered(_player: Player) -> void:
if not crossed:
AudioManager.play_global_sfx("correct")
crossed = true
AudioManager.play_global_sfx("correct")