fix: rideaux names rideaux et arreter de parler apres lights off
All checks were successful
Create tag and build when new code gets to main / BumpTag (push) Successful in 13s
Create tag and build when new code gets to main / Export (push) Successful in 2m32s

This commit is contained in:
2025-06-29 16:07:10 +02:00
parent 9f176cd1a9
commit 0ebd81c479
2 changed files with 12 additions and 4 deletions

View File

@ -20,6 +20,7 @@ var is_interjection_next = false
var current_info: int = 0
var is_over = false
var currently_playing: AudioStreamPlayer2D
var lights_off = false
@onready var vo_light_off: AudioStreamPlayer2D = $Hack/VOLightOff
@onready var vo_prise_tiree: AudioStreamPlayer2D = $Hack/VOPriseTiree
@ -73,6 +74,7 @@ func _on_prise_interacted(event_id: String) -> void:
interact.play()
vo_light_off.play()
lights_off = true
currently_playing = vo_light_off
func made_mistake() -> void:
@ -111,6 +113,8 @@ func _on_right_door_event_triggered(event_id: String) -> void:
func _on_timer_between_vo_timeout() -> void:
if currently_playing != null and currently_playing.playing:
return
if lights_off:
return
if is_over:
vo_interjection.play()