Exemplo n.º 1
0
        public static SceneHandler CreateSceneHandler(GameComponentCollection gameComponents, GraphicsDevice graphicsDevice, ContentManager contentManager)
        {
            var scene        = new MenuScene();
            var sceneHandler = new SceneHandler(scene, gameComponents, graphicsDevice, contentManager);

            scene.SetSceneHandler(sceneHandler);
            sceneHandler.LoadScene();
            return(sceneHandler);
        }
Exemplo n.º 2
0
Arquivo: Scene.cs Projeto: mikze/Heads
 public void SetSceneHandler(SceneHandler sceneHandler) => _sceneHandler = sceneHandler;