Exemple #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);
        }
Exemple #2
0
 public void SetSceneHandler(SceneHandler sceneHandler) => _sceneHandler = sceneHandler;