Fix and stuff antoine

This commit is contained in:
antoine.mcnabb 2016-06-25 17:52:38 -04:00
parent b46e0b546a
commit c3b6714c19
3 changed files with 2 additions and 0 deletions

Binary file not shown.

Binary file not shown.

View File

@ -25,8 +25,10 @@ public class FloorTileGenerator : MonoBehaviour {
floorArray = new GameObject[x * y]; floorArray = new GameObject[x * y];
for (int i = 0; i < x * y; ++i) for (int i = 0; i < x * y; ++i)
{ {
floorArray[i] = (GameObject)Instantiate(tile, new Vector3(i / y, 0, i % y), new Quaternion()); floorArray[i] = (GameObject)Instantiate(tile, new Vector3(i / y, 0, i % y), new Quaternion());
floorArray[i].name = i / y + "," + i % y; floorArray[i].name = i / y + "," + i % y;
floorArray[i].transform.parent = gameObject.transform;
} }
#if UNITY_EDITOR #if UNITY_EDITOR
Generated = true; Generated = true;