Exemplo n.º 1
0
 private bool AreThereEnemySpawns()
 {
     foreach (KeyValuePair <EnemyManager, int> entry in enemyManagerUnitCountDict)
     {
         Spawns spawns = entry.Key.GetComponentInChildren <Spawns>();
         if (spawns)
         {
             Spawn singleSpawn = spawns.GetComponentInChildren <Spawn>();
             if (singleSpawn)
             {
                 return(true);
             }
         }
     }
     return(false);
 }