// Use this for initialization void Start() { RandomGen depthScaler = new RandomGen(MIN_DEPTH, MAX_DEPTH); int depth = depthScaler.GetNbr(); RandomGen radiusScaler = new RandomGen(MIN_RADIUS, MAX_RADIUS); int radius = radiusScaler.GetNbr(); // Instantiate(Arch, new Vector3(radius, 1, depth, 6), Quaternion.identity); }
// Use this for initialization void Start() { RandomGen sideScaler = new RandomGen(MIN_SIDE, MAX_SIDE); int side = sideScaler.GetNbr(); GameObject go = Instantiate(cube, new Vector3(-1000000, 0, 0), Quaternion.identity); go.transform.localScale += new Vector3(side, side, side); }
// Use this for initialization void Start() { RandomGen radiusScaler = new RandomGen(MIN_RADIUS, MAX_HAUTEUR); int radius = radiusScaler.GetNbr(); RandomGen hauteurScaler = new RandomGen(MIN_HAUTEUR, MAX_HAUTEUR); int hauteur = hauteurScaler.GetNbr(); Vector3 scaler = new Vector3(radius, hauteur, radius); GameObject go = Instantiate(torus, new Vector3(100000, 1, 0), Quaternion.identity); go.transform.localScale += scaler; }
// Use this for initialization void Start() { RandomGen largeurScaler = new RandomGen(MIN_LARGEUR, MAX_LARGEUR); int largeur = largeurScaler.GetNbr(); RandomGen longueurScaler = new RandomGen(MIN_LONGUEUR, MAX_LONGUEUR); int longueur = longueurScaler.GetNbr(); Vector3 scaler = new Vector3(longueur, largeur, 0); Vector3 origin = Input.mousePosition; GameObject go = Instantiate(door, origin, Quaternion.identity); go.transform.localScale += scaler; }
// Use this for initialization void Start() { RandomGen radiusScaler = new RandomGen(MIN_RADIUS, MAX_HAUTEUR); int radius = radiusScaler.GetNbr(); RandomGen hauteurScaler = new RandomGen(MIN_HAUTEUR, MAX_HAUTEUR); int hauteur = hauteurScaler.GetNbr(); Vector3 scaler = new Vector3(radius, hauteur, radius); Vector3 origin = Input.mousePosition; GameObject go = Instantiate(roundPillar, origin, Quaternion.identity); go.transform.localScale += scaler; }
// Use this for initialization void Start() { RandomGen depthScaler = new RandomGen(MIN_DEPTH, MAX_DEPTH); int depth = depthScaler.GetNbr(); RandomGen radiusScaler = new RandomGen(MIN_RADIUS, MAX_RADIUS); int radius = radiusScaler.GetNbr(); Vector3 scaler = new Vector3(depth, radius, 1); Vector3 origin = Input.mousePosition; GameObject go = Instantiate(Arch, origin, Quaternion.identity); go.transform.localScale += scaler; }
// Use this for initialization void Start() { // RandomGen sideScaler = new RandomGen(MIN_SIDE, MAX_SIDE); // int side = sideScaler.GetNbr(); GameObject go = Instantiate(cube, new Vector3(-1000000, 0, 0), Quaternion.identity); // go.transform.localScale += new Vector3(side, side, side); RandomGen sideScaler = new RandomGen(MIN_SIDE, MAX_SIDE); int side = sideScaler.GetNbr(); Vector3 origin = Input.mousePosition; GameObject go2 = Instantiate(cube, origin, Quaternion.identity); go.transform.localScale += new Vector3(side, side, side); }