Exemplo n.º 1
0
        private static void     RemoveType()
        {
            if (DragObjectDrawer.initialDictionary == null)
            {
                DragObjectDrawer.InitializeInitialDictionaries();
            }

            Selection.selectionChanged -= DragObjectDrawer.OnSelectionChanged;
            DragObjectDrawer.s_DrawerTypeForType.SetValue(null, DragObjectDrawer.initialDictionary);
            DragObjectDrawer.UpdateInspector();
        }
Exemplo n.º 2
0
        private static void     AddType()
        {
            if (DragObjectDrawer.overridenDictionary == null)
            {
                DragObjectDrawer.InitializeDragDictionaries();
            }

            Selection.selectionChanged += DragObjectDrawer.OnSelectionChanged;
            DragObjectDrawer.s_DrawerTypeForType.SetValue(null, DragObjectDrawer.overridenDictionary);
            DragObjectDrawer.UpdateInspector();
        }