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