meat_madness_redux/godot/tests/bore_hole/DeathArea.gd

7 lines
162 B
GDScript

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")