Exemplo n.º 1
0
    void CreatePillar()
    {
        Pillar pillar = Instantiate(this.pillarTemplate) as Pillar;

        pillar.transform.position   = new Vector3(12, 0, 0);
        pillar.transform.localScale = Vector3.one;
        // int height = Random.Range(0, 3);
        pillar.SetHeight(1);//height);
        pillars.Add(pillar);
    }