diff --git a/Assets/Scripts/JSONLoader.cs b/Assets/Scripts/JSONLoader.cs index f63d0a2..824eb3b 100644 --- a/Assets/Scripts/JSONLoader.cs +++ b/Assets/Scripts/JSONLoader.cs @@ -46,6 +46,9 @@ void Start() //JSONObject obj = new JSONObject(_jsonString); //Config obj = JsonUtility.FromJson(_jsonString); + Newtonsoft.Json.Utilities.AotHelper.EnsureList(); + Newtonsoft.Json.Utilities.AotHelper.EnsureList(); + Config obj = Newtonsoft.Json.JsonConvert.DeserializeObject(_jsonString); //Debug.Log(obj);