public partial class Player : CharacterBody3D { /// Returns whether is the local player. public bool IsLocal => this.IsAuthority(); /// Gets the peer ID of this player. public int PeerId => GetMultiplayerAuthority(); /// Gets the workshop owned by this player. public Workshop Workshop => Game.Workshops.ByPeerId(PeerId); public MovementController Movement { get; private set; } public CameraController Camera { get; private set; } public AnimationController Animation { get; private set; } public PickupController Pickup { get; private set; } public override void _EnterTree() { Movement = GetNode(nameof(MovementController)); Camera = GetNode(nameof(CameraController)); Animation = GetNode(nameof(AnimationController)); Pickup = GetNode(nameof(PickupController)); } }