I'd like to get the info from xml file just once, on Awake, so I want to put all the xml info into a matrix. Not just in a ArrayList, but in a hashtable matrix with the name of each parent and child.
I've found nothing about it, so I'm trying by myself.
I thought to declare just one Hashtable in the beginning, because I don't have to know how much info is in the XML. And then, put hastables into another hashtables. For example:
private Hastable matrix = new Hashtable();
for(...){
matrix[i] = new hashtable();
for(...){
matrix[i][j] = value;
}
}
But I get an error in "matrix[i][j]".
Dictionary doesn't work, because I have to define the type of variables. Dictionary, but I want to make it for any xml structure.
Sorry for the code, I'm writting from the phone. XD