public void Shutdown() { if (!_isJoinInProgress) { _networkServer.Stop(); _networkClient.Leave(); _authorityConnectionId = ConnectionId.NoConnection; _isSingleplayer = true; } else { throw new Exception("Join is already in progress"); } }
private void StopListeningServer() { _networkServer.Stop(); _state = GameState.Disconnected; }