예제 #1
0
    void Awake()
    {
        if (instance != null && instance != this)
        {
            Destroy(this.gameObject);
        }
        else
        {
            instance = this;
        }
        DontDestroyOnLoad(this);

        innovations = new List <Innovation>();
    }
예제 #2
0
파일: Genome.cs 프로젝트: jonasstr/NEAT
 public Genome(IntNeuronDictionary neurons, IntWeightDictionary weights)
 {
     innovationDB = InnovationDB.instance;
     this.neurons = neurons;
     this.weights = weights;
 }
예제 #3
0
파일: Genome.cs 프로젝트: jonasstr/NEAT
 public Genome()
 {
     innovationDB = InnovationDB.instance;
     weights      = new IntWeightDictionary();
     neurons      = new IntNeuronDictionary();
 }