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

        innovations = new List <Innovation>();
    }
Example #2
0
 public Genome(IntNeuronDictionary neurons, IntWeightDictionary weights)
 {
     innovationDB = InnovationDB.instance;
     this.neurons = neurons;
     this.weights = weights;
 }
Example #3
0
 public Genome()
 {
     innovationDB = InnovationDB.instance;
     weights      = new IntWeightDictionary();
     neurons      = new IntNeuronDictionary();
 }