// Use this for initialization void Start() { var RawGenes = GeneFileLoader.LoadGenes(GeneFilePath); var Genes = RawGenes.Select(g => GeneFactory.InterpretGene(g)); var x = Genes.ToList(); var LobeGenes = x.OfType <LobeGene>().ToList(); Brain = BrainBuilder.Build(this.gameObject, LobeGenes); }
public void GetGenes() { Genes = GeneFileLoader.LoadGenes(FileLocation); }