Script Gera Tabuleiro: link pra baixar o .js:
#pragma strict var Bloco: GameObject; var BlocoAux: GameObject; var MatrizTabuleiro: int[,]; var X:int; var Y:int; function Start () { X = Mathf.FloorToInt(Random.Range(20,40)); Y = Mathf.FloorToInt(Random.Range(20,40)); print(X+"::"+Y); MatrizTabuleiro = new int [X,Y]; InstanciaTabuleiro(MatrizTabuleiro); } function Update () { } function InstanciaTabuleiro(Tabuleiro:int[,]){ var xx: int; var zz: int; for (xx=0;xx<Tabuleiro.GetLength(0);xx++) { for (zz=0;zz<Tabuleiro.GetLength(1);zz++) { BlocoAux = Instantiate(Bloco, transform.position- Bloco.transform.lossyScale.x*Tabuleiro.GetLength(0)/2*transform.right+ Bloco.transform.lossyScale.z*Tabuleiro.GetLength(1)/10*transform.forward- Bloco.transform.lossyScale.y*3*transform.up+ Bloco.transform.lossyScale.x*xx*Bloco.transform.right+ Bloco.transform.lossyScale.z*zz*Bloco.transform.forward, transform.rotation); BlocoAux.name = (xx+zz)+"S "+"X "+xx+"Z "+zz; if ((xx+zz)%2 == 0) { BlocoAux.renderer.material.color = Color.black; } } } transform.eulerAngles.x = 22; }
El Cajon Palace - Casino - Mapyro
ResponderExcluirEl 과천 출장안마 Cajon Palace is an upscale casino 양산 출장샵 located 경상북도 출장마사지 in a shopping center that's 의정부 출장안마 a perfect location to stay 속초 출장마사지 for a weekend getaway.