public void CheckReadyToBegin()
{
if (Application.loadedLevelName == this.m_LobbyScene)
{
int num = 0;
foreach (NetworkConnection connection in NetworkServer.connections)
{
if (connection != null)
{
if (CheckConnectionIsReadyToBegin(connection))
{
num++;
}
else
{
return;
}
}
}
foreach (NetworkConnection connection2 in NetworkServer.localConnections)
{
if (connection2 != null)
{
if (CheckConnectionIsReadyToBegin(connection2))
{
num++;
}
else
{
return;
}
}
}
if ((this.m_MinPlayers <= 0) || (num >= this.m_MinPlayers))
{
this.m_PendingPlayers.Clear();
this.OnLobbyServerPlayersReady();
}
}
}