Exemplo n.º 1
0
        public void Initialize(PoolEditorModel model, PoolEditorView view)
        {
            Model = model;
            View  = view;

            _stopwatch = new Stopwatch();
            _stopwatch.Start();


            View.EventSelectAll           += View_EventSelectAll;
            View.EventChangeActiveUpdater += ViewOnEventChangeActiveUpdater;
            View.EventChangeEditMode      += ViewOnEventChangeEditMode;
            View.EventRemoveObjects       += ViewOnEventRemoveObjects;
            view.EventCreateRoot          += ViewOnEventCreateRoot;

            SceneManager.sceneLoaded   += EditorSceneManagerOnSceneLoaded;
            SceneManager.sceneUnloaded += EditorSceneManagerOnSceneUnloaded;

            AngarEditorSettings.AddedUpdaterEvent   += AngarStaticSettingsOnAddedUpdaterEvent;
            AngarEditorSettings.RemovedUpdaterEvent += AngarStaticSettingsOnRemovedUpdaterEvent;

            EditorApplication.update += _Update;

            Model.RefreshUpdaters();
        }
Exemplo n.º 2
0
        public override void PostInit()
        {
            var model = new PoolEditorModel();

            var sceneImporterView  = new ScenePrefabImporterView();
            var importerController = new ScenePrefabImporterController(sceneImporterView);

            var view = new PoolEditorView(model, sceneImporterView);

            Initialize(model, view);

            MainControll = view;
        }