public SampleCreature(Segment body, DNA dna) { this.target = body.transform.position + body.transform.forward * distance; GetAllSegments(body); this.body = body; this.dna = dna; network = new Network(GetLayersCount(), this.dna.genes); }
public SampleCreature(Segment body) { this.target = body.transform.position + body.transform.forward * distance; GetAllSegments(body); this.body = body; this.dna = new DNA(GetGenesCount(), new Vector2(-1f, 1f)); network = new Network(GetLayersCount()); }