Selaa lähdekoodia

清空预置目录

guodong 1 vuosi sitten
vanhempi
commit
7aa0a295a6

+ 3 - 0
GameClient/Assets/Editor/BuildEditor/PresetAssetHelper.cs

@@ -72,6 +72,9 @@ namespace GFGEditor
                 }
             }
             string root = $"{AssetBundleBuilderHelper.GetDefaultStreamingAssetsRoot()}/{VersionController.DefaultPackage}";
+            //清空
+            EditorTools.ClearFolder(root);
+
             // 拷贝指定动态加载文件
             foreach (var packageBundle in bundles)
             {

+ 3 - 0
GameClient/Assets/Game/HotUpdate/GameGlobal.cs

@@ -6,6 +6,9 @@ namespace GFGGame
 {
     public class GameGlobal
     {
+        //开服时间,单位毫秒
+        public static long OpenServerTime;
+
         public static bool isVisitor = false;
         public static bool isFirstEntry = false;