public static void OpenUI() { if (wnd == null) { wnd = GetWindow <FileServerGUI>(); wnd.titleContent = new GUIContent("VFS File Server"); wnd.maxSize = new Vector2(300, 400); } else { wnd.Show(); wnd.Focus(); } }
private void OnDestroy() { wnd = null; }