Esempio n. 1
0
 private void Leafing(Branch b, int leafcount = 3)
 {
     for (int i = 0; i < leafcount; i++)
     {
         LeafBud l = LeafBud.Create(b,
                                    b.transform.position + b.transform.rotation * b.smoothsteps [(int)(b.smoothsteps.Length * (float)(i + 1) / (leafcount + 1))],
                                    30.0f * ((i % 2 == 0? 1 : (-1))), this.leaf);
     }
 }