extends Label # Called when the node enters the scene tree for the first time. func _ready(): visible = false var goal = get_tree().get_first_node_in_group("goal") if goal: goal.win.connect(_on_win) func _on_win(): visible = true text = "你赢了!" var player = get_tree().get_first_node_in_group("player") if player: player.set_physics_process(false) player.velocity = Vector2.ZERO # Replace with function body. # Called every frame. 'delta' is the elapsed time since the previous frame. func _process(delta: float) -> void: pass