Hello, I have 2 scenes, 1 for client and 1 for server. In my client scene I have script attached on Network manager and in my server scene too. I want to do, that when minPlayers is connected to server, it will start countdown. I have tried to use manager.BroadcastMessager method, but I am getting no receiver error. My server script:
private bool countdownStarted = false;
public int countdown = 10;
void Update()
{
if(manager.numPlayers >= manager.minPlayers)
{
if(!countdownStarted)
{
countdownStarted = true;
while(countdown >= 0)
{
manager.BroadcastMessage("Game starts in " + countdown);
countdown--;
}
}
}
}
Thank you.