2023-01-02 23:21:46 -07:00
|
|
|
extends Area
|
|
|
|
|
|
|
|
var dialog = null
|
|
|
|
|
|
|
|
func _ready():
|
|
|
|
pass # Replace with function body.
|
|
|
|
|
|
|
|
func _on_DialogTrigger_body_entered(body):
|
2023-01-03 00:20:41 -07:00
|
|
|
if body.get_parent() != Util.player:
|
|
|
|
return
|
|
|
|
dialog = Dialogic.start("elevator")
|
|
|
|
add_child(dialog)
|
2023-01-02 23:21:46 -07:00
|
|
|
|
|
|
|
func _on_DialogTrigger_body_exited(body):
|
2023-01-03 12:20:47 -07:00
|
|
|
if body.get_parent() != Util.player:
|
|
|
|
return
|
2023-01-02 23:21:46 -07:00
|
|
|
if dialog != null:
|
|
|
|
dialog = null
|