Esempio n. 1
0
 public void Execute()
 {
     for (int i = 0; i <= SourceInstanceArray.Length - 1; i++)
     {
         VegetationInstance vegetationInstance = SourceInstanceArray[i];
         if (vegetationInstance.Excluded == 1)
         {
             continue;
         }
         TargetInstanceList.Add(vegetationInstance);
     }
 }
Esempio n. 2
0
        public void Execute()
        {
            for (int i = 0; i < InstanceList.Length; i++)
            {
                VegetationInstance vegetationInstance = InstanceList[i];
                if (vegetationInstance.Excluded == 1)
                {
                    continue;
                }

                MatrixInstance matrixInstance = new MatrixInstance
                {
                    Matrix = Matrix4x4.TRS(InstanceList[i].Position,
                                           InstanceList[i].Rotation, InstanceList[i].Scale),
                    DistanceFalloff = InstanceList[i].DistanceFalloff
                };
                VegetationInstanceMatrixList.Add(matrixInstance);
            }
        }
Esempio n. 3
0
 public void Execute(int index)
 {
     VegetationInstanceList[index] = new VegetationInstance();
 }