15 lines
262 B
GDScript3
15 lines
262 B
GDScript3
|
extends Area
|
||
|
|
||
|
var dialog = null
|
||
|
|
||
|
func _ready():
|
||
|
pass # Replace with function body.
|
||
|
|
||
|
func _on_DialogTrigger_body_entered(body):
|
||
|
dialog = Dialogic.start("obelisk")
|
||
|
add_child(dialog)
|
||
|
|
||
|
func _on_DialogTrigger_body_exited(body):
|
||
|
if dialog != null:
|
||
|
dialog = null
|