public override void Spawn()
 {
     if (!poolDataSet.ObjectAddsResult)
     {
         return;
     }
     for (int i = 0; i < poolDataSet.SpawnCount; i++)
     {
         Facade.SetObjectSpawnItem(this, PoolDataSet.SpawnObject);
         var go = Facade.SpawnObject(this);
         AlignObject(PoolDataSet.AlignType, go, SpawnTransform);
     }
 }
예제 #2
0
 public override void Spawn()
 {
     for (int i = 0; i < SpawnObjectGroup.Count; i++)
     {
         if (SpawnObjectGroup[i].SpawnTransform != null && SpawnObjectGroup[i].PoolObject != null)
         {
             if (!SpawnObjectGroup[i].PoolObject.ObjectAddsResult)
             {
                 return;
             }
             flag = i;
             for (int j = 0; j < SpawnObjectGroup[i].PoolObject.SpawnCount; j++)
             {
                 Facade.SetObjectSpawnItem(SpawnObjectGroup[i].SpawnTransform, SpawnObjectGroup[i].PoolObject.SpawnObject);
                 var go = Facade.SpawnObject(SpawnObjectGroup[i].SpawnTransform);
                 AlignObject(SpawnObjectGroup[i].PoolObject.AlignType, go, SpawnObjectGroup[i].SpawnTransform);
             }
         }
     }
 }