wartheking пре 8 месеци
родитељ
комит
6375b6a81d
1 измењених фајлова са 2 додато и 1 уклоњено
  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();
         }