| | |
| | | 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) |