How can I possibly count only the specific whole row i want in a multidimensional array
I do the counting of my whole row like this
string[,] table = new string[104, 6];
IEnumerator Win_Log(){
GameObject p = Instantiate(prefab_gameobject) as GameObject;
p.transform.SetParent(pos_big_road);
p.transform.localScale = Vector3.one;
img = (RawImage)p.GetComponent<RawImage>();
//COLUMN
for(int col = 0; col < table.GetLength(0); col++)
{
int sum = 0;
//ROW
for (int row = 0; row < table.GetLength(1); row++)
{
if (table[col,row] != null)
{
sum++;
}
}
Debug.Log("table column: " + col + " has " + sum + " data");
}
}
The problem with this code is that it gets the whole multidimensional array . What i want is just to get the specific whole row then move to another row just like that.