forked from harper/spooktober-vnj
19 lines
345 B
GDScript
19 lines
345 B
GDScript
extends Node
|
|
class_name DialogueEncounter
|
|
|
|
var dialogue: DialogueScene
|
|
signal step
|
|
|
|
func _init(path: Resource) -> void:
|
|
self.dialogue = path
|
|
await Start()
|
|
|
|
func _input(_event: InputEvent) -> void:
|
|
if Input.is_action_just_pressed("ui_accept"):
|
|
step.emit()
|
|
|
|
func Start():
|
|
for i in self.dialogue.get_scene():
|
|
print(i.dialogue)
|
|
await step
|