Ejemplo n.º 1
0
 Transform PickPrefab(int level, float hash, float choice)
 {
     if (level > 0)
     {
         float[] thresholds = HexMetric.GetFeatureThresholds(level - 1);
         for (int i = 0; i < thresholds.Length; i++)
         {
             if (hash < thresholds[i])
             {
                 return(urbanCollections[i].Pick(choice));
             }
         }
     }
     return(null);
 }