예제 #1
0
 public JBatchContent(JBatchContent other)
 {
     if (other.elements != null)
     {
         elements = new JBatchContentElement[other.elements.Length];
         for (int i = 0; i < elements.Length; i++)
         {
             elements[i] = new JBatchContentElement(other.elements[i]);
         }
     }
 }
예제 #2
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]);
         }
     }
 }