I have this class:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[System.Serializable]
public class Map
{
public int widht;
public int height;
public List<List<string>> box;
public List<List<bool>> exploited;
public int num_diggers;
public Map()
{
}
public void printContent()
{
}
public void actualizarDimensiones(Dimensiones dimension)
{
}
}
and I am trying to get the dataa from that JSON:
{βwidhtβ:10,
βheightβ:10,
βboxβ:[[βHβ,βBβ,βBβ,βBβ,βBβ,βBβ,βBβ,βBβ,βBβ,βWβ],[βBβ,βBβ,βBβ,βBβ,βBβ,βBβ,βBβ,βBβ,βBβ,βBβ],[βBβ,βBβ,βBβ,βBβ,βBβ,βBβ,βBβ,βBβ,βBβ,βBβ],[βBβ,βBβ,βBβ,βBβ,βBβ,βBβ,βBβ,βBβ,βBβ,βBβ],[βBβ,βBβ,βBβ,βBβ,βBβ,βWβ,βBβ,βBβ,βBβ,βBβ],[βBβ,βBβ,βBβ,βBβ,βWβ,βWβ,βFβ,βBβ,βBβ,βBβ],[βBβ,βBβ,βBβ,βBβ,βBβ,βFβ,βFβ,βBβ,βBβ,βBβ],[βBβ,βBβ,βBβ,βBβ,βBβ,βBβ,βBβ,βFβ,βPβ,βPβ],[βBβ,βBβ,βBβ,βBβ,βBβ,βBβ,βBβ,βPβ,βMβ,βMβ],[βWβ,βBβ,βBβ,βBβ,βBβ,βBβ,βBβ,βPβ,βMβ,βMβ]],
βexploitedβ:[[false,false,false,false,false,false,false,false,false,false],[false,false,false,false,false,false,false,false,false,false],[false,false,false,false,false,false,false,false,false,false],[false,false,false,false,false,false,false,false,false,false],[false,false,false,false,false,false,false,false,false,false],[false,false,false,false,false,false,false,false,false,false],[false,false,false,false,false,false,false,false,false,false],[false,false,false,false,false,false,false,false,false,false],[false,false,false,false,false,false,false,false,false,false],[false,false,false,false,false,false,false,false,false,false]],
βnum_diggersβ:1,
βdiggersβ:[{βgoldsβ:[ ],
βidβ:β0β,
βxβ:1,
βyβ:0}],
βgoldsβ:[ ]}
but I canβt take the values of βboxβ and βexploitedβ witch are matrix. I am using the JsonUtility of Unity.