hch
2026-04-10 0cdb20ea7603543b468ae873ecfae7958fd16517
0312 优化无法进入游戏问题
1个文件已修改
13 ■■■■■ 已修改文件
Main/System/KnapSack/PackManager.cs 13 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/System/KnapSack/PackManager.cs
@@ -555,7 +555,18 @@
            path = AssetVersionUtility.GetAssetFilePath($"Config/{name}.txt");
        }
        return File.ReadAllLines(path);
    // #if UNITY_ANDROID && !UNITY_EDITOR
        using var req = UnityEngine.Networking.UnityWebRequest.Get(path);
        req.SendWebRequest();
        while (!req.isDone) { }
        if (req.result != UnityEngine.Networking.UnityWebRequest.Result.Success)
            throw new Exception(req.error);
        return req.downloadHandler.text
            .Split(new[] { '\r', '\n' }, StringSplitOptions.RemoveEmptyEntries);
    // #endif
        // return File.ReadAllLines(path);
    }
    public int GetCanBuyPackGirdCount(PackType type)