mirror of
https://github.com/thegatesbrowser/godot-multiplayer.git
synced 2025-08-20 18:17:08 -04:00
15 lines
288 B
GDScript
15 lines
288 B
GDScript
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
|