10 lines
332 B
GDScript
10 lines
332 B
GDScript
extends Area3D
|
|
|
|
@export var dialogue_resource: DialogueResource
|
|
@export var dialogue_start: String = "start"
|
|
|
|
func action(game_state: QuestState) -> void:
|
|
var balloon = load("res://ui/dialogue/balloon.tscn").instantiate()
|
|
get_tree().current_scene.add_child(balloon)
|
|
balloon.start(dialogue_resource, dialogue_start, [game_state])
|