maze-generator-assets-lib/ziel.gd

9 lines
156 B
GDScript3
Raw Normal View History

2025-02-28 17:13:53 +01:00
extends Sprite2D
func _on_area_2d_body_entered(body: Node2D) -> void:
if body.name == "Player":
get_tree().change_scene_to_file("res://end.tscn")