Question by
qiqette · Oct 10, 2016 at 09:38 AM ·
c#gameobjectinstantiateprogramminggrid
How to add gameobjects to a grid?
I have a 5x5 grid, and i want to instantiate objects in it, but i don't know how to place them where I want.
Like this, but i don't know how to make just 21 or 9 or 14, i just know how to instantiate 5, 10, 15, 20, 25 game objects with the...
for (int x = 0; x < 8; x++) { for (int y = 0; y < 5; y++) { PlaceIcon(x, y, startPoint); } }
Help me with this code please :S
captura.png
(12.2 kB)
Comment