void Awake() { pl = PrefabLoaderWrapper_script.GetPL(); if (customDNA != null) { DNA = new DNA(DNAU.GeneEntries2GeneList(customDNA)); } OrganismPrefab = pl.Load("Organism"); }
private List <DNA> CreateSeedDNA() { List <DNA> SeedDNA = new List <DNA>(); for (int i = 0; i < SpeciesCount; i++) { List <Gene> BaseL = DNAU.GeneEntries2GeneList(Base); DNA SpeciesDNA = new DNA(BaseL, extraGenes); for (int j = 0; j < MembersCount; j++) { SeedDNA.Add(SpeciesDNA.Duplicate()); } } return(SeedDNA); }