Exemplo n.º 1
0
        public virtual void addInstanceAppend(FoliageInstanceGroup group)
        {
            List <Matrix4x4> list;
            List <bool>      list2;

            this.getOrAddLists(out list, out list2);
            list.Add(group.matrix);
            list2.Add(group.clearWhenBaked);
        }
Exemplo n.º 2
0
        public virtual void addInstanceRandom(FoliageInstanceGroup group)
        {
            List <Matrix4x4> list;
            List <bool>      list2;

            this.getOrAddLists(out list, out list2);
            int index = Random.Range(0, list.Count);

            list.Insert(index, group.matrix);
            list2.Insert(index, group.clearWhenBaked);
        }
Exemplo n.º 3
0
        // Token: 0x06000CDA RID: 3290 RVA: 0x0005E8F0 File Offset: 0x0005CCF0
        public void addInstance(FoliageInstanceGroup instance)
        {
            if (!this.hasInstances)
            {
                return;
            }
            FoliageInstanceList orAddList = this.getOrAddList(this.instances, instance.assetReference);

            orAddList.addInstanceRandom(instance);
            this.updateBounds();
            this.canSafelyClear = false;
        }