generated from SGDA/GodotExampleProject
fix: rideaux names rideaux et arreter de parler apres lights off
This commit is contained in:
@ -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()
|
||||
|
Reference in New Issue
Block a user