TheKingsRace/Assets/Scripts/Network/DisconnectReason.cs
Julia Butenhoff db5b10ef47 Rewrote Networking and Base Lobby Created
- Rewrote networking based on tutorials from MLAPI Demo Project and
  Dapper Dino
- Created Lobby UI based on the turorial from Dapper Dino
- Linked Existing UI into using the new networking
- Modified Lobby Settings to only allow 3 players
- Added Field for players to enter their player name
2021-10-15 16:01:18 -05:00

17 lines
366 B
C#

public class DisconnectReason {
public ConnectStatus Reason { get; private set; } = ConnectStatus.Undefined;
public void SetDisconnectReason(ConnectStatus reason)
{
Reason = reason;
}
public void Clear()
{
Reason = ConnectStatus.Undefined;
}
public bool HasTransitionReason => Reason != ConnectStatus.Undefined;
}