9 lines
153 B
GDScript3
9 lines
153 B
GDScript3
|
extends Sprite2D
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
func _on_area_2d_body_entered(body: Node2D) -> void:
|
||
|
if body.name == "Player":
|
||
|
get_tree().change_scene_to_file("res://end.tscn")
|