mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-23 04:23:04 +00:00
add max num players to net stats
This commit is contained in:
parent
d7b9abb29c
commit
8020e49a69
2 changed files with 3 additions and 0 deletions
|
@ -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 {
|
||||
|
|
|
@ -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())
|
||||
|
|
Loading…
Reference in a new issue