mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-04 02:47:22 +00:00
13 lines
422 B
C#
13 lines
422 B
C#
using UnityEngine.Networking;
|
|
|
|
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);
|
|
}
|
|
}
|