예제 #1
0
 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();
     }
 }
예제 #2
0
 private void OnDestroy()
 {
     wnd = null;
 }