Exemplo n.º 1
0
        /// <summary>
        /// Overridden function that gets called when the plugin is loaded. Registers all creator plugins
        /// </summary>
        /// <returns></returns>
        public override bool DeInitPluginModule()
        {
            HavokManaged.ManagedModule.DeInitManagedModule();
            foreach (IShapeCreatorPlugin plugin in creators)
            {
                EditorManager.ShapeCreatorPlugins.Remove(plugin);
            }

            IProject.ProjectUnloaded -= new EventHandler(IProject_ProjectUnloaded);

            _panel.Close();
            _panel.Dispose();
            _panel = null;

            return(true);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Overridden function that gets called when the plugin is loaded. Registers all creator plugins
        /// </summary>
        /// <returns></returns>
        public override bool DeInitPluginModule()
        {
            HavokManaged.ManagedModule.DeInitManagedModule();
            foreach (IShapeCreatorPlugin plugin in creators)
            {
                EditorManager.ShapeCreatorPlugins.Remove(plugin);
            }

            EditorManager.SceneChanged    -= new SceneChangedEventHandler(EditorManager_SceneChanged);
            IScene.EngineInstancesChanged -= new EngineInstancesChangedEventHandler(IScene_EngineInstancesChanged);

            _panel.Close();
            _panel.Dispose();
            _panel = null;

            return(true);
        }