Audio system rework
This commit is contained in:
parent
96f92757b5
commit
347a990421
21 changed files with 173 additions and 29 deletions
|
|
@ -1,5 +1,11 @@
|
|||
extends CharacterBody3D
|
||||
|
||||
func _ready() -> void:
|
||||
if is_multiplayer_authority():
|
||||
await get_tree().process_frame
|
||||
await get_tree().process_frame
|
||||
$Idle.multiplayer_play()
|
||||
|
||||
func _physics_process(delta: float) -> void:
|
||||
if is_multiplayer_authority() == false:
|
||||
return
|
||||
|
|
@ -17,3 +23,4 @@ func _physics_process(delta: float) -> void:
|
|||
else:
|
||||
var normal = collision.get_normal()
|
||||
velocity = velocity.bounce(normal) * 0.5
|
||||
$MultiplayerAudio3D.multiplayer_play()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue