|
@@ -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();
|