Forráskód Böngészése

资源释放时间

zhaoyang 2 éve
szülő
commit
08e2a0057b

+ 1 - 1
GameClient/Assets/Game/HotUpdate/Data/Handler/RoleDataHandler.cs

@@ -42,7 +42,7 @@ namespace GFGGame
                 CommonSProxy.ResetDailyData().Coroutine();
             }
 
-            if (seconds >= TimeUtil.SECOND_PER_MUNITE * 0.1)
+            if (seconds >= TimeUtil.SECOND_PER_MUNITE * 1)
             {
                 ViewManager.CheckDispsoe();
                 seconds = 0;

+ 1 - 1
GameClient/Assets/Game/HotUpdate/Views/ViewManager.cs

@@ -349,7 +349,7 @@ namespace GFGGame
                 // if (kv.Value.packageName == ResPathUtil.GetUIPackagePath("CommonGame") || kv.Value.packageName == ResPathUtil.GetUIPackagePath("Common") || kv.Value.packageName == ResPathUtil.GetUIPackagePath("Main")) return;//这几个包不释放
                 long currentTime = TimeHelper.ClientNowSeconds();
                 long closeTime = kv.Value.closeTime;
-                if (closeTime > 0 && currentTime - closeTime >= TimeUtil.SECOND_PER_MUNITE * 0.1)
+                if (closeTime > 0 && currentTime - closeTime >= TimeUtil.SECOND_PER_MUNITE * 1)
                 {
                     kv.Value.closeTime = 0;
                     kv.Value.Dispose();