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