mirror of
https://github.com/Leahnaya/TheKingsRace.git
synced 2026-09-10 03:15:17 -05:00
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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user