int[,] blockX1 = new int[,]{
{1,1,1,},
{1,0,1,},
{1,1,1,},
};
int[,] blockX2 = new int[,]{
{1,0,1,},
{0,0,0,},
{1,0,1,},
};
int[,] blockX3 = new int[,]{
{1,1,1,},
{1,0,1,},
{1,1,1,},
};
public GameObject blockPfb;
void Start()
{
for (int y = 0; y < 3; y++)
{
for (int x = 0; x < 3; x++)
{
if (blockX1[y, x] == 1)
{
Instantiate(blockPfb, new Vector3(x * 197, y * 197, 1 * 197), Quaternion.identity);
}
}
for (int x = 0; x < 3; x++)
{
if (blockX2[y, x] == 1)
{
Instantiate(blockPfb, new Vector3(x * 197, y * 197, 2 * 197), Quaternion.identity);
}
}
for (int x = 0; x < 3; x++)
{
if (blockX3[y, x] == 1)
{
Instantiate(blockPfb, new Vector3(x * 197, y * 197, 3 * 197), Quaternion.identity);
}
}
}
}