Continued work on spawning players

- Modified PlayerData to hold IsKing
- Added spawning code
- Need to merge in player prefab with networkobject
This commit is contained in:
2021-10-25 13:38:16 -05:00
parent c984664a37
commit 7a866191bb
4 changed files with 45 additions and 10 deletions

View File

@@ -2,10 +2,12 @@ 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)
public PlayerData(string playerName, ulong clientId, bool isKing = false)
{
PlayerName = playerName;
ClientId = clientId;
IsKing = isKing;
}
}