TinyAdventure/objects/actionable.gd

10 lines
332 B
GDScript
Raw Normal View History

extends Area3D
@export var dialogue_resource: DialogueResource
@export var dialogue_start: String = "start"
2024-07-12 14:32:33 +02:00
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])