bool examples = false; // examples were loaded from file void Start() { this.snake = GetComponent <Snake>(); perception = new Perception(this.snake); btree = new BehavioralTree(); // CreateNeuralNetwork(); // LoadNeuralNetwork(); if (create) { CreateNeuralNetwork(); } else { LoadNeuralNetwork(); } }
void Start() { this.snake = GetComponent <Snake>(); this.BT = new BehavioralTree(); }