Skip to content

Commit

Permalink
Fix Android AOT error
Browse files Browse the repository at this point in the history
  • Loading branch information
mratarusama committed May 26, 2022
1 parent 60b528b commit 1fb0c4f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Assets/Scripts/JSONLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ void Start()
//JSONObject obj = new JSONObject(_jsonString);

//Config obj = JsonUtility.FromJson<Config>(_jsonString);
Newtonsoft.Json.Utilities.AotHelper.EnsureList<Config.Museum>();
Newtonsoft.Json.Utilities.AotHelper.EnsureList<Config.Exhibit>();

Config obj = Newtonsoft.Json.JsonConvert.DeserializeObject<Config>(_jsonString);

//Debug.Log(obj);
Expand Down

0 comments on commit 1fb0c4f

Please sign in to comment.