meat_madness_redux/godot/assets/meat_creek/DialogTrigger.gd

16 lines
277 B
GDScript3
Raw Normal View History

2023-01-02 23:21:46 -07:00
extends Area
var phase = 0
var dialog = null
func _ready():
pass # Replace with function body.
func _on_DialogTrigger_body_entered(body):
dialog = Dialogic.start("elevator")
add_child(dialog)
func _on_DialogTrigger_body_exited(body):
if dialog != null:
dialog = null