public void NavigateTo(IScene scene)
        {
            InitLoadingSceneIfNeeded();

            var previousScene = _currentScene;

            _currentScene.Set(LoadingScene);
            _beforeNavigate.ForEach(x => x());
            previousScene.Dispose();
            scene.Init();
            _currentScene.Set(scene);
        }
 public void NavigateTo(IScene scene)
 {
     _beforeNavigate.ForEach(x => x());
     _currentScene.Dispose();
     scene.Init();
     _currentScene.Set(scene);
 }