public bool CheckIfAllReady() { if (matchManager.Players.Count != (matchManager.serverConnections + 1)) { matchManager.AddNotInitializatedPlayer(); } Debug.Log("Players in matchmanager.... -- " + matchManager.Players.Count); Debug.Log("serverconnections..-- " + (matchManager.serverConnections + 1)); bool AllReady = matchManager.Players.All(pet => pet.ConnectionSelf.isReady == true && (matchManager.Players.Count == (matchManager.serverConnections + 1))); return(AllReady); }