コード例 #1
0
        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);
        }
コード例 #2
0
        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());
        }