Hi there, Uniters, im currently working on a tile based building game, I thought the building would be simple, but i cant find a smart way of doing this.
Say, i have Instantiated a prefab at an position, and when i click the clone, another prefab is instantiated right above it(a relative position).
I have an array assigning all the positions. Instantiate lines reads it.
I cant just go : Instantiate(block, new Vector3(block.position.x,block.position.y+10,block.position.z),Quaternion.identity)
As it is now, all the clones are called the same thing, can i rename them, or are there a simpler, smarter solution?
I would prefer any code answers in C#, if possible.
Thanks for reading.
[Not a minecraft clone]
answered Apr 06 '12 at 12:23 AM