private static void RemoveType() { if (DragObjectDrawer.initialDictionary == null) { DragObjectDrawer.InitializeInitialDictionaries(); } Selection.selectionChanged -= DragObjectDrawer.OnSelectionChanged; DragObjectDrawer.s_DrawerTypeForType.SetValue(null, DragObjectDrawer.initialDictionary); DragObjectDrawer.UpdateInspector(); }
private static void AddType() { if (DragObjectDrawer.overridenDictionary == null) { DragObjectDrawer.InitializeDragDictionaries(); } Selection.selectionChanged += DragObjectDrawer.OnSelectionChanged; DragObjectDrawer.s_DrawerTypeForType.SetValue(null, DragObjectDrawer.overridenDictionary); DragObjectDrawer.UpdateInspector(); }