19 lines
419 B
GDScript
19 lines
419 B
GDScript
extends "res://Scripts/Component/Interactable.gd"
|
|
|
|
var state : int = 0
|
|
|
|
func _ready():
|
|
connect("interacted", self, "_on_interact")
|
|
$Speaker.speaker_name = "CEO Grant Blevins"
|
|
$Speaker.connect("dialog_exited", self, "_on_dialog_exit")
|
|
|
|
func _on_interact():
|
|
if state == 0:
|
|
$Speaker.start_dialog("intro_meet_ceo")
|
|
else:
|
|
$Speaker.start_dialog("into_speak_ceo")
|
|
|
|
func _on_dialog_exit():
|
|
if state == 0:
|
|
state = 1
|