pir-serious-game-ethics/Main.gd

17 lines
457 B
GDScript

extends Node
# Called when the node enters the scene tree for the first time.
func _ready():
var new_dialog = Dialogic.start('start')
add_child(new_dialog)
new_dialog.connect('dialogic_signal', self, "_on_Dialogic_signal_received")
new_dialog.connect('event_end', self, "_on_Dialogic_event_end")
func _on_Dialogic_signal_received(value: String):
print('received ' + value)
func _on_Dialogic_event_end(value: String):
print('event_end ' + value)