using UnityEngine.Networking; namespace QSB { public abstract class PlayerSyncObject : NetworkBehaviour { public uint AttachedNetId => GetComponent()?.netId.Value ?? uint.MaxValue; public uint PlayerId => this.GetPlayerOfObject(); public uint PreviousPlayerId { get; set; } public PlayerInfo Player => PlayerRegistry.GetPlayer(PlayerId); } }