Esempio n. 1
0
    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();
        }
    }
Esempio n. 2
0
 void Start()
 {
     this.snake = GetComponent <Snake>();
     this.BT    = new BehavioralTree();
 }