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