Beispiel #1
0
        public void Run(Space firstSpace)
        {
            if (SS != null)
            {
                throw new Exception("Only one App can run at a time");
            }

            using (var game = new XnaGame(this, config))
                using (SS = game.InitializeSubsystems())
                {
                    NextSpace = firstSpace;
                    game.Run();
                }

            SS = null;
        }