Quellcode durchsuchen

bat脚本测试

beiguoxia vor 3 Jahren
Ursprung
Commit
3fc4d3f82d
1 geänderte Dateien mit 2 neuen und 5 gelöschten Zeilen
  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();