コード例 #1
0
 public override void disconnect(bool neatly = true)
 {
     if (client != null)
     {
         Console.WriteLine("Disconnecting from server {0}", lobbyId);
         client.Close();
         client            = null;
         connectionMessage = null;
     }
 }
コード例 #2
0
 public override void stopServer()
 {
     Console.WriteLine("Stopping Galaxy server");
     server.Close();
     if (galaxyPersonaDataChangedListener != null)
     {
         galaxyPersonaDataChangedListener.Dispose();
         galaxyPersonaDataChangedListener = null;
     }
 }