Audio system
This commit is contained in:
parent
b0ba8adcd7
commit
de2736c701
38 changed files with 2538 additions and 78 deletions
19
scripts/audio_system/multiplayer_audio_3d.gd
Normal file
19
scripts/audio_system/multiplayer_audio_3d.gd
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
extends AudioStreamPlayer3D
|
||||
|
||||
class_name MultiplayerAudio3D
|
||||
|
||||
func multiplayer_play():
|
||||
play()
|
||||
internal_play.rpc()
|
||||
|
||||
func multiplayer_stop():
|
||||
stop()
|
||||
internal_stop.rpc()
|
||||
|
||||
@rpc
|
||||
func internal_play():
|
||||
play()
|
||||
|
||||
@rpc
|
||||
func internal_stop():
|
||||
play()
|
||||
Loading…
Add table
Add a link
Reference in a new issue