mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-06 01:00:16 +00:00
12 lines
377 B
C#
12 lines
377 B
C#
using QuantumUNET;
|
|
|
|
namespace QSB.Player
|
|
{
|
|
public abstract class PlayerSyncObject : QSBNetworkBehaviour
|
|
{
|
|
public uint AttachedNetId => GetComponent<QSBNetworkIdentity>()?.NetId.Value ?? uint.MaxValue;
|
|
public uint PlayerId => this.GetPlayerOfObject();
|
|
public uint PreviousPlayerId { get; set; }
|
|
public PlayerInfo Player => QSBPlayerManager.GetPlayer(PlayerId);
|
|
}
|
|
} |