NetworkClient.connectState made static

This commit is contained in:
vis2k 2019-03-24 20:03:45 +01:00
parent 006d5d3bc8
commit f351a8a6d4

View File

@ -4,6 +4,14 @@
namespace Mirror
{
public enum ConnectState
{
None,
Connecting,
Connected,
Disconnected
}
public class NetworkClient
{
// the client (can be a regular NetworkClient or a LocalClient)
@ -16,14 +24,7 @@ public class NetworkClient
public NetworkConnection connection { get; protected set; }
protected enum ConnectState
{
None,
Connecting,
Connected,
Disconnected
}
protected ConnectState connectState = ConnectState.None;
internal static ConnectState connectState = ConnectState.None;
public string serverIp { get; private set; } = "";