TheKingsRace/Assets/Scripts/Network/PlayerData.cs
Julia Butenhoff c1d51f4148 Fixed Items Not Apply to Clients Bug
- Fixed a bug in which clients were not spawned in with their items
  despite selecting them in the lobby.  Also applied this fix to the
  respawn method for the pitfalls
2022-01-19 17:28:12 -06:00

19 lines
520 B
C#

public struct PlayerData {
public string PlayerName { get; private set; }
public ulong ClientId { get; private set; }
public bool IsKing { get; set; }
public PlayerInventory pInv { get; set; }
public bool Finished { get; set; }
public PlayerData(string playerName, ulong clientId, bool isKing = false, bool finished = false)
{
PlayerName = playerName;
pInv = new PlayerInventory();
ClientId = clientId;
IsKing = isKing;
Finished = finished;
}
}