From 4aa65ff804bcd4b0301571ae3fd22f8da0111567 Mon Sep 17 00:00:00 2001 From: gaoxin Date: Fri, 23 Apr 2021 14:08:27 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=85=B3=E9=97=ADlog=E3=80=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../~Lua/Modules/Common/SpriteLoader.lua | 6 +++--- .../ResMgr/AssetBundleMgr/AssetBundleManager.cs | 8 ++++---- .../ResourcesMgr/ResLoader/RuntimeResLoader.cs | 16 ++++++++-------- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/Assets/ManagedResources/~Lua/Modules/Common/SpriteLoader.lua b/Assets/ManagedResources/~Lua/Modules/Common/SpriteLoader.lua index 47b76dfae6..44a6f7d97e 100644 --- a/Assets/ManagedResources/~Lua/Modules/Common/SpriteLoader.lua +++ b/Assets/ManagedResources/~Lua/Modules/Common/SpriteLoader.lua @@ -42,9 +42,9 @@ function SpriteLoader:UnLoadSprite() LogError("SpriteLoader Repeat UnLoad : ".. self.id..", count : "..SpriteLoaderPool[self.id]) end for name, count in pairs(self.SpriteList) do - if name == "shadow_4" then - LogWarn("lua 回收资源:name:"..name..", count:"..count) - end + -- if name == "shadow_4" then + -- LogWarn("lua 回收资源:name:"..name..", count:"..count) + -- end resMgr:UnLoadAsset(name, count) end self.SpriteList = {} diff --git a/Assets/Scripts/Core/ResMgr/AssetBundleMgr/AssetBundleManager.cs b/Assets/Scripts/Core/ResMgr/AssetBundleMgr/AssetBundleManager.cs index 42f9b86996..9f065c1b8b 100644 --- a/Assets/Scripts/Core/ResMgr/AssetBundleMgr/AssetBundleManager.cs +++ b/Assets/Scripts/Core/ResMgr/AssetBundleMgr/AssetBundleManager.cs @@ -161,10 +161,10 @@ namespace ResMgr } private void Log(string path, string con) { - if (path.Contains("shadow_4")) - { - Debug.LogWarning(con); - } + //if (path.Contains("shadow_4")) + //{ + // Debug.LogWarning(con); + //} } /// /// 同步加载AB文件 diff --git a/Assets/Scripts/Core/ResMgr/ResourcesMgr/ResLoader/RuntimeResLoader.cs b/Assets/Scripts/Core/ResMgr/ResourcesMgr/ResLoader/RuntimeResLoader.cs index 313d024cb6..97f8e327ae 100644 --- a/Assets/Scripts/Core/ResMgr/ResourcesMgr/ResLoader/RuntimeResLoader.cs +++ b/Assets/Scripts/Core/ResMgr/ResourcesMgr/ResLoader/RuntimeResLoader.cs @@ -86,10 +86,10 @@ namespace ResMgr } else { - if(this.Name == "shadow_4") - { - Debug.LogWarning("resData Loader is not Free, not unLoad: " + this.Name); - } + //if(this.Name == "shadow_4") + //{ + // Debug.LogWarning("resData Loader is not Free, not unLoad: " + this.Name); + //} } } Asset = null; @@ -183,10 +183,10 @@ namespace ResMgr private void Log(string name, string con) { - if (name.Equals("shadow_4")) - { - Debug.LogWarning(con); - } + //if (name.Equals("shadow_4")) + //{ + // Debug.LogWarning(con); + //} } /// /// 加载资源