private void BreedNewCharacter(Brain parent1, Brain parent2)
        {
            Brain offspringBrain = this.BreedNewCharacter();

            offspringBrain.Action = Random.Range(0, 2) == 0 ? parent1.Action : parent2.Action;
        }
Example #2
0
        private void BreedNewCharacter(Brain parent1, Brain parent2)
        {
            Brain offspringBrain = this.BreedNewCharacter();

            offspringBrain.DNA = DNA.Combine(parent1.DNA, parent2.DNA);
        }