22 lines
455 B
GDScript
22 lines
455 B
GDScript
extends Area3D
|
|
|
|
@onready var level_control = get_tree().current_scene
|
|
|
|
# Called when the node enters the scene tree for the first time.
|
|
func _ready():
|
|
pass # Replace with function body.
|
|
|
|
|
|
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
|
func _process(delta):
|
|
pass
|
|
|
|
|
|
func _on_area_exited(area):
|
|
pass #level_control.die()
|
|
|
|
|
|
|
|
func _on_body_shape_exited(body_rid, body, body_shape_index, local_shape_index):
|
|
level_control.die()
|