| | |
| | | } |
| | | #endif |
| | | |
| | | path = AssetVersionUtility.GetAssetFilePath($"Config/{name}.txt"); |
| | | |
| | | using var req = UnityEngine.Networking.UnityWebRequest.Get(path); |
| | | await req.SendWebRequest(); |
| | | |
| | | if (req.result != UnityEngine.Networking.UnityWebRequest.Result.Success) |
| | | throw new Exception($"LoadConfigIni failed: {req.error}"); |
| | | |
| | | return req.downloadHandler.text |
| | | .Split(new[] { '\r', '\n' }, StringSplitOptions.RemoveEmptyEntries); |
| | | return await ResManager.Instance.LoadConfigAsync(name + ".ini", false); |
| | | } |
| | | |
| | | public int GetCanBuyPackGirdCount(PackType type) |
| | | { |
| | | if (!PackMaxCountDict.ContainsKey((int)type)) |