Browse Source

Update HttpHelper.cs

wartheking 7 months ago
parent
commit
6375b6a81d
1 changed files with 2 additions and 1 deletions
  1. 2 1
      Assets/Scripts/HttpHelper.cs

+ 2 - 1
Assets/Scripts/HttpHelper.cs

@@ -231,12 +231,13 @@ public class HttpHelper : MonoBehaviour
         requestData.Dispose();
         if (!successInternet)
         {
-            WWW www = new WWW(Application.streamingAssetsPath + "/hotPoints.json.json");
+            WWW www = new WWW(Application.streamingAssetsPath + "/hotPoints.json");
             await new UnityAsync.WaitUntil(() =>
             {
                 return www.isDone;
             });
             GlobalData.hotPointDatas = JsonConvert.DeserializeObject<List<HotPointData>>(www.text);
+            Debug.Log(GlobalData.hotPointDatas.Count);
             www.Dispose();
         }