public void CheckReadyToBegin()
{
string name = SceneManager.GetSceneAt(0).name;
if (!(name != this.m_LobbyScene))
{
int num = 0;
int num2 = 0;
for (int i = 0; i < NetworkServer.connections.Count; i++)
{
NetworkConnection networkConnection = NetworkServer.connections[i];
if (networkConnection != null)
{
num2++;
num += NetworkLobbyManager.CheckConnectionIsReadyToBegin(networkConnection);
}
}
if (this.m_MinPlayers <= 0 || num >= this.m_MinPlayers)
{
if (num >= num2)
{
this.m_PendingPlayers.Clear();
this.OnLobbyServerPlayersReady();
}
}
}
}