private void Initialize(string externalResourcesPath, AssetManageConfig assetManageConfig)
        {
            // コンパイルが始まったら閉じる.
            CompileNotification.OnCompileStartAsObservable()
            .Subscribe(_ => Close())
            .AddTo(Disposable);

            assetManageConfig.Optimisation();

            assetManageModel = new AssetManageModel();
            assetManageModel.Initialize();

            assetManageManager = new AssetManageManager();
            assetManageManager.Initialize(externalResourcesPath, assetManageConfig);

            manageAssetView = new ManageAssetView();
            manageAssetView.Initialize(assetManageModel, assetManageManager);

            assetManageModel.OnRequestRepaintAsObservable().Subscribe(_ => Repaint()).AddTo(Disposable);
        }
Beispiel #2
0
        //----- property -----

        //----- method -----

        public void Initialize(AssetManageModel assetManageModel, AssetManageManager assetManageManager)
        {
            if (initialized)
            {
                return;
            }

            this.assetManageModel   = assetManageModel;
            this.assetManageManager = assetManageManager;

            assetManageModel.OnDragAndDropAsObservable().Subscribe(x => OnDragAndDrop(x)).AddTo(Disposable);

            assetManageManager.CollectInfo();

            selectionGroupInfo = null;

            BuildManageInfoViews();

            initialized = true;
        }