Cow_Life_Sim_RPG/Interactions/Talking/Talkable.gd

12 lines
245 B
GDScript

extends Interaction
func _ready():
add_action("Talk", talk)
func talk():
var dialogue = get_parent().get_dialogue()
if dialogue != null:
DialogueBoxManager.set_current_speaker(get_parent())
DialogueBoxManager.start_dialogue(dialogue)