Guest User

Untitled

a guest
May 22nd, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. tileList = new GameObject[y,x];
  2.  
  3.  
  4.  
  5.  
  6. for (var i : int = 0;i < y; i++) {
  7. for (var j : int = 0; j < x; j++)
  8. {
  9. tileList[i,j] =Instantiate (tilePrefab, Vector3(j, i, 0), Quaternion.identity);
  10. var tempTileScript : scriptTile = tileList[i,j].GetComponent(scriptTile);
  11. Debug.Log("terain:"+tempTileScript.terain);
Add Comment
Please, Sign In to add comment