So i’m using the Lobby Manager that is on the asset store by Unity. And in the lobbymanager.cs script there is a problem that just occured to me. it’s not been there before and i dont know whats causing it. The error is in the title.
And it’s about this peice of code:
//allow to handle the (+) button to add/remove player
public void OnPlayersNumberModified(int count)
{
_playerNumber += count;
int localPlayerCount = 0;
foreach (PlayerController p in ClientScene.localPlayers)
localPlayerCount += (p == null || p.playerControllerId == -1) ? 0 : 1;
addPlayerButton.SetActive(localPlayerCount < maxPlayersPerConnection && _playerNumber < maxPlayers);
}
My project is kindoff on hold atm because if this wich sucks.