예제 #1
0
 private static void GenerateForegroundStructure(HexList4D <HexForegroundComponent> foreground, int radius,
                                                 ForegroundTypes type, ForegroundTypes badType, int value, int count, float chance, float diffChance)
 {
     for (int i = 0; i < count; i++)
     {
         GenerateRecursiveF(foreground, type, badType, HexMath.RandomPosition(radius), value, chance, diffChance);
     }
 }
예제 #2
0
 private static void GenerateBackgroundStructure(HexList4D <HexBackgroundComponent> background, int radius,
                                                 BackroundTypes type, BackroundTypes badType, int count, float chance, float diffChance)
 {
     for (int i = 0; i < count; i++)
     {
         GenerateRecursiveB(background, type, badType, HexMath.RandomPosition(radius), chance, diffChance);
     }
 }