Пример #1
0
        private static void ResetGame()
        {
            /*
             * Literally kill the existing chars
             */
            p = null;

            /*for (int i = 0; i < enemies.Count; i++)
             * {
             *  enemies[i].em = null; // intended fix for hamsterinflation, doesn't work
             * }*/
            enemies.Clear(); // Empty array of Enemies

            /*
             * Empty arrays of grid elements
             */
            Tiles.ClearAll();

            IsFirstKeyPressInGame = true;
        }