extends Area2D

@export_file('*.tscn') var WIN_SCENE;

# Called when the node enters the scene tree for the first time.
func _ready():
	body_entered.connect(on_body_entered)

func on_body_entered(body):
	if body.is_in_group('player'):
		get_tree().change_scene_to_file(WIN_SCENE)
