Audio system rework

This commit is contained in:
Rendo 2025-12-12 00:13:22 +05:00
commit 347a990421
21 changed files with 173 additions and 29 deletions

View file

@ -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: