for (int x = 0; x < AllCellColumn; x++)
{
for (int y = 0; y < AllCellRow; y++)
{
//在PosObj位置基础上,根据两个for嵌套循环,生成格子
//x方向需要除去1.938f,y方向需要除去2f(套了Canvas需要计算的距离~~唉)
GameObject.Instantiate(Cell, new Vector3(PosObj.transform.position.x+(x/1.938f), PosObj.transform.position.y + (y / 2f), PosObj.transform.position.z), Quaternion.identity, this.transform);
GameObject.Instantiate(BluePintlePreformed, new Vector3(PosObj.transform.position.x + (x / 1.938f), PosObj.transform.position.y + (y / 2f), PosObj.transform.position.z), Quaternion.identity, this.transform);
}
}