Ejemplo n.º 1
0
 private void AddUnitsToTurnManager()
 {
     Transform[] playerUnits = playerParent.GetComponentsInChildren <Transform>();
     if (playerUnits.Length > 0)
     {
         foreach (Transform playerUnit in playerUnits)
         {
             turnManager.AddUnitToQueue(playerUnit);
         }
     }
     Transform[] enemyUnits = enemyParent.GetComponentsInChildren <Transform>();
     if (enemyUnits.Length > 0)
     {
         foreach (Transform enemyUnit in enemyUnits)
         {
             turnManager.AddUnitToQueue(enemyUnit);
         }
     }
 }