Ejemplo n.º 1
0
        internal static void DestroyGame(bool restart = false)
        {
            //SendLeaveGame()
            // break out of GameLoop
            if (restart)
            {
                RestartGame();
            }
            else
            {
                C_Variables.InGame = false;

                C_Graphics.DestroyGraphics();
                C_UpdateUI.GameDestroyed = true;
                C_NetworkConfig.DestroyNetwork();
                Application.Exit();
                ProjectData.EndApp();
            }
        }