Audio system rework
This commit is contained in:
parent
96f92757b5
commit
347a990421
21 changed files with 173 additions and 29 deletions
|
|
@ -6,8 +6,15 @@ extends Area3D
|
|||
var damage_targets: Array[Player]
|
||||
|
||||
func _ready() -> void:
|
||||
if multiplayer.is_server() == false:
|
||||
return
|
||||
body_entered.connect(on_body_entered)
|
||||
body_exited.connect(on_body_exited)
|
||||
|
||||
await get_tree().process_frame
|
||||
await get_tree().process_frame
|
||||
$Idle.multiplayer_play()
|
||||
$MultiplayerAudio3D.multiplayer_play()
|
||||
|
||||
func damage():
|
||||
for target in damage_targets:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue