Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tileList = new GameObject[y,x];
- for (var i : int = 0;i < y; i++) {
- for (var j : int = 0; j < x; j++)
- {
- tileList[i,j] =Instantiate (tilePrefab, Vector3(j, i, 0), Quaternion.identity);
- var tempTileScript : scriptTile = tileList[i,j].GetComponent(scriptTile);
- Debug.Log("terain:"+tempTileScript.terain);
Add Comment
Please, Sign In to add comment