var tile:GameObject;
var tombstone:GameObject
var sizeX:int = 50;
var sizeZ:int = 50;
function Start ()
{
for(var x = 0; x < sizeX; x++)
for(var z = 0; z < sizeZ; z++)
{
Instantiate(tile, Vector3(x,0,z), tile.transform.rotation);
}
}
Now how I could randomly instantiate an tombstone there and here, so that they’re everytime in different point when the game starts, but not outside of game area ofcourse.