public void GenerateRandomConnections(int seed, List<Transform> fragments)
{
GenerateRandomConnections(seed);
HashSet<Transform> fragmentSet = new HashSet<Transform>(GetValidModules(fragments));
moduleConnections = FilterConnectionsByFragments(moduleConnections, fragmentSet);
consumerModuleConnections = FilterConnectionsByFragments(consumerModuleConnections, fragmentSet);
}
public void GenerateRandomConnection(in int seed, List<Transform> fragments)
{
GenerateRandomConnections(seed, fragments);
}