TheKingsRace/Assets/Scripts/Network/PlayerData.cs
Julia Butenhoff 7a866191bb Continued work on spawning players
- Modified PlayerData to hold IsKing
- Added spawning code
- Need to merge in player prefab with networkobject
2021-10-25 13:38:16 -05:00

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;
}
}