18 lines
370 B
GDScript3
18 lines
370 B
GDScript3
|
extends StaticBody
|
||
|
|
||
|
var root : Spatial
|
||
|
func _ready():
|
||
|
root = get_parent()
|
||
|
pass
|
||
|
|
||
|
func interact(relate):
|
||
|
var dialog = Dialogic.start("vending_machine_BROKE")
|
||
|
dialog.connect("dialogic_signal", self, "dialog_listener")
|
||
|
add_child(dialog)
|
||
|
#root.interact(relate)
|
||
|
|
||
|
#func dialog_listener(string):
|
||
|
#if string == "PLAY":
|
||
|
# isplaying = true
|
||
|
# root.play()
|