feat: straightforward lvl 1

This commit is contained in:
2025-06-29 13:43:11 +02:00
parent dbf2092411
commit 16c7adfceb
2 changed files with 4 additions and 7 deletions

View File

@ -9,6 +9,7 @@ extends Node2D
var is_interjection_next = false
var current_info = 0
var is_over = false
@onready var vo_interjection: AudioStreamPlayer2D = $RightDoor/VOInterjection
@onready var vo_player_1: AudioStreamPlayer2D = $RightDoor/VOPlayer1
@ -63,16 +64,12 @@ func _on_door_event_confirmed(event_id: String) -> void:
func _on_timer_between_vo_timeout() -> void:
if is_interjection_next:
print("interjection")
if is_over:
vo_interjection.play()
is_interjection_next = not is_interjection_next
return
if current_info >= len(vo_players):
is_over = true
return
vo_players[current_info].play()
current_info += 1
is_interjection_next = not is_interjection_next