7 lines
162 B
GDScript3
7 lines
162 B
GDScript3
|
extends Area
|
||
|
|
||
|
|
||
|
func _on_Area_body_entered(body):
|
||
|
if body.get_parent() == Util.player:
|
||
|
var _err = get_tree().change_scene("res://screens/gameover_screen.tscn")
|