瀏覽代碼

资源释放

zhaoyang 3 年之前
父節點
當前提交
eb5c1e39a6

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

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

+ 3 - 0
GameClient/Assets/Game/HotUpdate/Views/BaseWindow.cs

@@ -68,7 +68,10 @@ namespace GFGGame
                 {
                     _window = new Window();
                 }
+                ET.Log.Debug("zoya:_window:" + _window + "   contentPane: " + _window.contentPane);
                 _window.contentPane = value;
+                ET.Log.Debug("zoya:modal0:" + _window);
+                ET.Log.Debug("zoya:modal1:" + _window.modal);
                 _window.modal = modal;
             }
         }

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

@@ -332,7 +332,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 * 3)
+                if (closeTime > 0 && currentTime - closeTime >= TimeUtil.SECOND_PER_MUNITE * 1)
                 {
                     kv.Value.closeTime = 0;
                     kv.Value.Dispose();