private void Update()
 {
     if (window == null || windowData == null)
     {
         var tempfilePath = System.IO.Path.Combine(Application.temporaryCachePath, kitTempFileName);
         if (System.IO.File.Exists(tempfilePath))
         {
             var tempfilelines = System.IO.File.ReadAllLines(tempfilePath);
             var windowtitle   = tempfilelines[0];
             GetWindow <KitManagementEditorWindow>(true, windowtitle).Close();
             KitManagementEditor.MakeNewFunction();
         }
         return;
     }
 }
 /// <summary>
 /// 窗口更新多次调用
 /// </summary>
 private void Update()
 {
     if (window == null || windowData == null)
     {
         var tempfilePath = System.IO.Path.Combine(Application.temporaryCachePath, kitTempFileName);
         if (System.IO.File.Exists(tempfilePath))
         {
             var tempfilelines = System.IO.File.ReadAllLines(tempfilePath);
             var windowtitle   = tempfilelines[0];
             GetWindow <KitManagementEditorWindow>(true, windowtitle).Close();
             var tempfilecontent = tempfilelines[1];
             if (tempfilecontent == KitManagementEditor.InstallComponentWindowTitle)
             {
                 KitManagementEditor.InstallComponentFunction();
             }
             else if (tempfilecontent == KitManagementEditor.UninstallComponentWindowTitle)
             {
                 KitManagementEditor.UninstallComponentFunction();
             }
         }
         return;
     }
 }