private void Quit() { if (Instance != null) { Instance.Close(); } Instance = null; m_Focused = false; }
public static void OpenWindow() { if (Instance != null) { return; } Instance = EditorWindow.GetWindow <ScriptFinder>(true, TITLE, true); LoadData(); Instance.minSize = m_MinSize; Rect position = Instance.position; position.center = new Vector2(Screen.currentResolution.width / 2f, Screen.currentResolution.height / 2f); Instance.position = position; Instance.Show(); }