void Awake() { if (instance != null && instance != this) { Destroy(this.gameObject); } else { instance = this; } DontDestroyOnLoad(this); innovations = new List <Innovation>(); }
public Genome(IntNeuronDictionary neurons, IntWeightDictionary weights) { innovationDB = InnovationDB.instance; this.neurons = neurons; this.weights = weights; }
public Genome() { innovationDB = InnovationDB.instance; weights = new IntWeightDictionary(); neurons = new IntNeuronDictionary(); }