protected void OnDestroy() { PFilterListCenter.closeWindows -= CloseWindow; PFilterListCenter.Stop(); PPaintCenter.ClientRepaints -= Repaint; _window = null; }
internal static void OpenWindow(FilterContent[] contents) { _window = GetWindow <FilterWindow>(true); _window.maxSize = new Vector2(400, 500); _window.titleContent = new GUIContent("Search"); PFilterListCenter.Start(contents); }
private static void CloseWindow() { if (_window) { _window.Close(); } _window = null; }
private static void OpenWindow(Rect rect, Vector2 windowSize, FilterDisplayMode mode, FilterContent[] contents) { if (mode == FilterDisplayMode.WINDOW) { FilterWindow.OpenWindow(contents); } else { FilterPopup.OpenWindow(rect, windowSize, contents); } }