Esempio n. 1
0
 public static void StopGame()
 {
     if (Client != null)
     {
         Client.Disconnect();
         Client = null;
     }
     Game.End();
     Game       = null;
     Dispatcher = null;
     Database.Close();
     IsGameRunning = false;
 }
Esempio n. 2
0
 public static void StopGame()
 {
     if (Client != null)
     {
         Client.Disconnect();
         Client = null;
     }
     if (GameEngine != null)
     {
         GameEngine.End();
     }
     GameEngine    = null;
     Dispatcher    = null;
     IsGameRunning = false;
 }