Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private Vector3[,] spawnGrid = new Vector3[3, 4];
- void SpawnGrid()
- {
- for (int i = 0; i < 3; i++)
- {
- for (int j = 0; j < 4; j++)
- {
- spawnGrid[i, j] = new Vector3(x, 0f, z);
- GUI.Box(new Rect(10,10,300,300),spawnGrid[i,j].ToString());
- z -= 1;
- }
- x += 1;
- z = 1.5f; //gives original value back to Z.
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement