The way I handled this in my game was to in addition to my 2d array create separate public arrays for each layer. So for you it would be 7 different arrays of ten elements each.
This allowed me to have my 2d array write to my individual arrays whenever I needed to check something by looping through each layer of the 2d array. I wouldn't recommend writing to the array often, but if this is debug functionality then maybe add a function that does this whenever you hit a specific button or a certain point in your game you need to test.
↧