generated from SGDA/GodotExampleProject
fix: added voiceline and removed broken credits
This commit is contained in:
@ -21,6 +21,7 @@ var current_info: int = 0
|
||||
var is_over = false
|
||||
var currently_playing: AudioStreamPlayer2D
|
||||
|
||||
@onready var vo_light_off: AudioStreamPlayer2D = $Hack/VOLightOff
|
||||
@onready var vo_prise_tiree: AudioStreamPlayer2D = $Hack/VOPriseTiree
|
||||
@onready var vo_interjection: AudioStreamPlayer2D = $Hack/VOInterjection
|
||||
@onready var interact: AudioStreamPlayer2D = $Player/Interact
|
||||
@ -66,6 +67,13 @@ func _on_prise_interacted(event_id: String) -> void:
|
||||
right_hack.activate()
|
||||
for light in lights.get_children():
|
||||
light.visible = false
|
||||
|
||||
if currently_playing != null and currently_playing.playing:
|
||||
currently_playing.stop()
|
||||
|
||||
interact.play()
|
||||
vo_light_off.play()
|
||||
currently_playing = vo_light_off
|
||||
|
||||
func made_mistake() -> void:
|
||||
vies -= 1
|
||||
|
Reference in New Issue
Block a user