2024-07-10 22:52:28 +02:00
|
|
|
extends Area3D
|
|
|
|
|
|
|
|
@export var dialogue_resource: DialogueResource
|
|
|
|
@export var dialogue_start: String = "start"
|
|
|
|
|
2024-08-16 00:24:27 +02:00
|
|
|
func action() -> void:
|
|
|
|
var balloon = load("res://ui/dialogue/balloon.tscn").instantiate() as DialogueBaloon
|
|
|
|
|
2024-07-12 14:32:33 +02:00
|
|
|
get_tree().current_scene.add_child(balloon)
|
2024-08-16 00:24:27 +02:00
|
|
|
var quest_states = get_tree().get_nodes_in_group("quest_state")
|
|
|
|
balloon.start(dialogue_resource, dialogue_start, quest_states)
|