浏览代码

bat脚本测试

beiguoxia 3 年之前
父节点
当前提交
3fc4d3f82d
共有 1 个文件被更改,包括 2 次插入5 次删除
  1. 2 5
      GameClient/Assets/Editor/ToolsMenu.cs

+ 2 - 5
GameClient/Assets/Editor/ToolsMenu.cs

@@ -2,6 +2,7 @@
 using GFGGame;
 using System;
 using System.IO;
+using System.Threading;
 using UnityEditor;
 using UnityEditor.Compilation;
 using UnityEngine;
@@ -63,11 +64,7 @@ namespace GFGEditor
         static void UpdateProject()
         {
             SQLiteHelper.Instance.CloseConnection();
-            FairyGUI.Timers.inst.CallLater(Test);
-        }
-
-        private static void Test(object obj)
-        {
+            Thread.Sleep(1000);
             EditorUtility.DisplayProgressBar("进度", "正在更新项目", 1);
             ProcessUtil.ExcuteBat("Assets/Editor/Bat/", "updateGame.bat");
             EditorUtility.ClearProgressBar();