Exemple #1
0
    // 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);
    }
Exemple #2
0
 public void GetGenes()
 {
     Genes = GeneFileLoader.LoadGenes(FileLocation);
 }