Esempio n. 1
0
	// Use this for initialization
	void Start () {
		pos = transform.position;
		player = GameObject.Find ("Commit");
		outputs = new double[2];
		net = new NeuralNetwork (9, 2, 6);
		net.readWeights ();
		ctrl = player.GetComponent<CommitController> ();
		wall = player.GetComponent<WallSensor> ();
		adj = player.GetComponent<AdjacentSensor> ();
		pie = player.GetComponent<PieSliceSensor> ();
	}