add max num players to net stats

This commit is contained in:
in0finite 2019-06-25 22:43:00 +02:00
parent d7b9abb29c
commit 8020e49a69
2 changed files with 3 additions and 0 deletions

View file

@ -14,6 +14,8 @@ namespace SanAndreasUnity.Net
public static bool dontListen { get { return NetworkServer.dontListen; } set { NetworkServer.dontListen = value; } }
public static int maxNumPlayers => NetworkManager.singleton.maxConnections;
public static TelepathyTransport telepathyTransport { get { return ((TelepathyTransport)Transport.activeTransport); } }
public static string onlineScene {

View file

@ -23,6 +23,7 @@ namespace SanAndreasUnity.Stats
{
Utilities.GUIUtils.DrawHorizontalLine(1, 1, Color.black);
GUILayout.Label("Num connections: " + NetworkServer.connections.Count);
GUILayout.Label("Max num players: " + NetManager.maxNumPlayers);
}
if (NetStatus.IsClientActive())