Beispiel #1
0
        public override void Update(GameTime gameTime)
        {
            base.Update(gameTime);

            if (Keyboard.GetState().IsKeyDown(Keys.Escape))
            {
                var level = EntityContainer as Level;
                SerializationFactory.SerializeToFile(level, level.LevelPath);
                PCGame.SceneManager.LoadScene(new MainMenuScene(), true, true);
            }
        }