Beispiel #1
0
 public JBatchContentElement(JBatchContentElement other)
 {
     type = other.type;
     if (other.spawnPoints != null)
     {
         spawnPoints = new string[other.spawnPoints.Length];
         for (int i = 0; i < spawnPoints.Length; i++)
         {
             spawnPoints[i] = other.spawnPoints[i];
         }
     }
     maxCount = other.maxCount;
     if (other.entityPools != null)
     {
         entityPools = new JEntityPool[other.entityPools.Length];
         for (int i = 0; i < entityPools.Length; i++)
         {
             entityPools[i] = new JEntityPool(other.entityPools[i]);
         }
     }
 }
Beispiel #2
0
 public JEntityPool(JEntityPool other)
 {
     count      = new JIntRange(other.count.min, other.count.max);
     entityName = other.entityName;
 }