public void ReadyToStart(int playerID) { // Debug.Log("Player " + playerID + " is ready to start the game."); // Make sure initialization has already happened in case another player // Sends game start before we are ready to handle it InitPlayersReadyState(); _readyPlayers.Add(playerID); if (_confirmedActions.IsConfirmedActionsEnabled()) { if (Network.isServer) { //don't need an rpc call if we are the server ConfirmPlayerReadyToServer(_localPlayerIndex, playerID); } else { _networkInterface.CallConfirmPlayerReadyToServer(_localPlayerIndex, playerID); } } //Check if we can start the game CheckGameStart(); }