generated from SGDA/GodotExampleProject
Compare commits
3 Commits
dbf2092411
...
v0.1.31
Author | SHA1 | Date | |
---|---|---|---|
08bd2ca3b4 | |||
16c7adfceb | |||
4344a43e02 |
@ -23,7 +23,7 @@ bus/4/name = &"Music"
|
|||||||
bus/4/solo = false
|
bus/4/solo = false
|
||||||
bus/4/mute = false
|
bus/4/mute = false
|
||||||
bus/4/bypass_fx = false
|
bus/4/bypass_fx = false
|
||||||
bus/4/volume_db = -0.030508
|
bus/4/volume_db = -10.0741
|
||||||
bus/4/send = &"Master"
|
bus/4/send = &"Master"
|
||||||
bus/5/name = &"Ambiance"
|
bus/5/name = &"Ambiance"
|
||||||
bus/5/solo = false
|
bus/5/solo = false
|
||||||
|
File diff suppressed because one or more lines are too long
@ -9,6 +9,7 @@ extends Node2D
|
|||||||
|
|
||||||
var is_interjection_next = false
|
var is_interjection_next = false
|
||||||
var current_info = 0
|
var current_info = 0
|
||||||
|
var is_over = false
|
||||||
@onready var vo_interjection: AudioStreamPlayer2D = $RightDoor/VOInterjection
|
@onready var vo_interjection: AudioStreamPlayer2D = $RightDoor/VOInterjection
|
||||||
|
|
||||||
@onready var vo_player_1: AudioStreamPlayer2D = $RightDoor/VOPlayer1
|
@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:
|
func _on_timer_between_vo_timeout() -> void:
|
||||||
if is_interjection_next:
|
if is_over:
|
||||||
print("interjection")
|
|
||||||
vo_interjection.play()
|
vo_interjection.play()
|
||||||
is_interjection_next = not is_interjection_next
|
|
||||||
return
|
|
||||||
|
|
||||||
|
|
||||||
if current_info >= len(vo_players):
|
if current_info >= len(vo_players):
|
||||||
|
is_over = true
|
||||||
return
|
return
|
||||||
|
|
||||||
vo_players[current_info].play()
|
vo_players[current_info].play()
|
||||||
current_info += 1
|
current_info += 1
|
||||||
is_interjection_next = not is_interjection_next
|
|
||||||
|
Reference in New Issue
Block a user