[gd_scene load_steps=3 format=3 uid="uid://bmng6wjt0paof"]

[ext_resource type="Script" uid="uid://k2r3aatbbyie" path="res://dialogues/dialogue_manager.gd" id="1_6nn6f"]
[ext_resource type="AudioStream" uid="uid://cx7g00rpjodv3" path="res://world_assets/audio/speech.wav" id="2_8cgcf"]

[node name="DialogueManager" type="Node"]
script = ExtResource("1_6nn6f")

[node name="UIFlickerTimer" type="Timer" parent="."]
wait_time = 0.5
ignore_time_scale = true

[node name="TimeBetweenLetters" type="Timer" parent="."]
wait_time = 0.05
ignore_time_scale = true

[node name="DialoguePlayer" type="AudioStreamPlayer" parent="."]
stream = ExtResource("2_8cgcf")
bus = &"Dialogue"

[connection signal="timeout" from="UIFlickerTimer" to="." method="toggle_ui"]
[connection signal="timeout" from="TimeBetweenLetters" to="." method="_on_next_letter"]
