mirror of
https://github.com/Leahnaya/TheKingsRace.git
synced 2026-03-28 20:54:45 -05:00
- Modified PlayerData to hold IsKing - Added spawning code - Need to merge in player prefab with networkobject
14 lines
344 B
C#
14 lines
344 B
C#
public struct PlayerData {
|
|
|
|
public string PlayerName { get; private set; }
|
|
public ulong ClientId { get; private set; }
|
|
public bool IsKing { get; set; }
|
|
|
|
public PlayerData(string playerName, ulong clientId, bool isKing = false)
|
|
{
|
|
PlayerName = playerName;
|
|
ClientId = clientId;
|
|
IsKing = isKing;
|
|
}
|
|
}
|