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