I have a multidimensional array which looks like this:
public static int[,] GameObjects = new int[,]
{
    //Type,X,Y,Width,Height
    {0,50,50,10,100},
    {1,50,150,10,20}
};
I'm trying to access one "row" of values and store them into a variable within a for loop:
 for (int i = 0; i < gameObjectData.Length; i++)
 {
     int[] g = gameObjectData[i];
 }
I want g to store the first array's values, so in the first loop g should store 0,50,50,10,100. The code gives the error Wrong number of indices inside []; expected 2
 
     
     
     
     
    