meat_madness_redux/godot/tests/bore_hole/DeathArea.gd

7 lines
162 B
GDScript3
Raw Normal View History

2023-01-03 23:20:07 -07:00
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")