I have the following code:
static int gridX = 40;
static int gridY = 40;
public struct CubeStruct
{
public Transform cube;
public bool alive;
public Color color;
}
public CubeStruct cubeArray[,] = new CubeStruct[gridX, gridY];
This returns the following errors:
error CS1519: Unexpected symbol `,' in class, struct, or interface member declaration
error CS0178: Invalid rank specifier: expected
,' or]'error CS1519: Unexpected symbol `;' in class, struct, or interface member declaration
It's probably something obvious, but I can't see it.