mirror of
https://github.com/Leahnaya/TheKingsRace.git
synced 2026-04-01 06:34:35 -05:00
- 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
17 lines
366 B
C#
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;
|
|
}
|