Esempio n. 1
0
        private void InitalizeScenes()
        {
            var menuScene    = new MenuScene(this.Content, this.Window);
            var gameScene    = new GameScene(this.Content, this.Window, _camera);
            var loadingScene = new LoadingScene(this.Content, this.Window);

            menuScene.Initalize();
            gameScene.Initalize();
            loadingScene.Initalize();

            Engine.Services.Get <SceneManager>().AddScene(menuScene, "menuScene");
            Engine.Services.Get <SceneManager>().AddScene(gameScene, "gameScene");
            Engine.Services.Get <SceneManager>().AddScene(loadingScene, "loadingScene");
            Engine.Services.Get <SceneManager>().SetActiveScene("menuScene");
        }