diff --git a/ProjectNLD/Assets/Code/Scripts/HotUpdate/GameLauncher.cs b/ProjectNLD/Assets/Code/Scripts/HotUpdate/GameLauncher.cs index 4f527fca791..28ae79c907c 100644 --- a/ProjectNLD/Assets/Code/Scripts/HotUpdate/GameLauncher.cs +++ b/ProjectNLD/Assets/Code/Scripts/HotUpdate/GameLauncher.cs @@ -143,19 +143,15 @@ public class GameLauncher : MonoBehaviour { //如果服务器上的catalog和本地不一致,则覆盖上一次需要下载的被内容 var jsonStr = JsonUtility.ToJson(_downloadContent); - Debug.Log($"set download json:{jsonStr}"); PlayerPrefs.SetString(DOWNLOAD_CATALOGS_ID, jsonStr); PlayerPrefs.Save(); } else { - Debug.Log($"try to get last download json"); if (PlayerPrefs.HasKey(DOWNLOAD_CATALOGS_ID)) { var jsonStr = PlayerPrefs.GetString(DOWNLOAD_CATALOGS_ID); - Debug.Log($"try to get last download json:{jsonStr}"); JsonUtility.FromJsonOverwrite(jsonStr, _downloadContent); - Debug.Log($"catalog count:{_downloadContent.catalogs.Count}"); } } @@ -443,8 +439,8 @@ public class GameLauncher : MonoBehaviour Debug.LogError( $"cant load dll,exception:{op.OperationException.Message}\r\n{op.OperationException.StackTrace}"); _dllBytes = null; - yield break; } + Addressables.Release(op); } private IEnumerator LoadSingleHotUpdateAssembly(string dllName)