Exemplo n.º 1
0
 public static void StopGame()
 {
     if (Client != null)
     {
         Client.Disconnect();
         Client = null;
     }
     Game.End();
     Game       = null;
     Dispatcher = null;
     Database.Close();
     IsGameRunning = false;
 }
Exemplo 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;
 }
Exemplo n.º 3
0
 public static void StopGame()
 {
     if (Client != null)
     {
         Client.Disconnect();
         Client = null;
     }
     if(GameEngine != null)
         GameEngine.End();
     GameEngine = null;
     Dispatcher = null;
     IsGameRunning = false;
 }
Exemplo n.º 4
0
 public static void StopGame()
 {
     if (Client != null)
     {
         Client.Disconnect();
         Client = null;
     }
     Game.End();
     Game = null;
     Dispatcher = null;
     Database.Close();
     IsGameRunning = false;
 }