Пример #1
0
        public SceneManagementController(
            SceneManagementModel sceneManagementModel,
            LoadingScreenModel loadingScreenModel)
        {
            _sceneManagementModel            = sceneManagementModel;
            _loadingScreenModel              = loadingScreenModel;
            _loadingScreenVisibilityDisposer = new SerialDisposable().AddTo(Disposer);

            _loadingScreenModel.OnCloseLoadingScreenCompleted
            .Subscribe(_ => _sceneManagementModel.PublishOnSceneStarted())
            .AddTo(Disposer);

            SceneManager.sceneLoaded += OnSceneLoaded;
        }
 private void Inject(LoadingScreenModel loadingScreenModel)
 {
     _loadingScreenModel = loadingScreenModel;
 }