foreach (int[] pos in list)
{
GameObject objectfield = Resources.Load<GameObject>("object");
objectfield.name = pos[0].ToString() + pos[1].ToString() + "object";
objectfield.transform.position = new Vector3(pos[0], 0, pos[1]);
Instantiate(objectfield);
}
foreach (int[] pos in list)
{
Material shell = new Material(Resources.Load<Material>("material"));
GameObject objectfield = Instantiate(Resources.Load<GameObject>("object"));
objectfield.name = pos[0].ToString() + pos[1].ToString() + "object";
objectfield.transform.position = new Vector3(pos[0], 0, pos[1]);
objectfield.GetComponent<Renderer>().material = shell;
}