mirror of
https://github.com/thegatesbrowser/godot-multiplayer.git
synced 2025-09-06 23:27:20 -04:00
copy from thegates-jam repo
This commit is contained in:
parent
c1a7ad74e1
commit
1a335de566
523 changed files with 22408 additions and 0 deletions
15
player/audio_listener.gd
Normal file
15
player/audio_listener.gd
Normal file
|
@ -0,0 +1,15 @@
|
|||
extends AudioListener3D
|
||||
|
||||
@onready var _pivot: Node3D = $"../CameraController"
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
if is_multiplayer_authority():
|
||||
make_current()
|
||||
else:
|
||||
clear_current()
|
||||
|
||||
|
||||
func _process(_delta: float) -> void:
|
||||
rotation_degrees = _pivot.rotation_degrees
|
||||
rotation_degrees.y += 180
|
Loading…
Add table
Add a link
Reference in a new issue