// Use this for initialization void Start() { Bots = new List <GameObject>(); WebTree = new Tree.Tree <NeiralNet.NeuralNetwork>(null, BorderLevel); WebTree.MaxLevelReach += WebTree_MaxLevelReach; _bestWeb = null; _worstWeb = null; }
private void Start() { BotData = new Statistic( ); _sun = GameObject.FindWithTag("Sun"); Web = new NeuralNetwork(TrainCoof); StartCoroutine(HPUpdateEnrgy()); StartCoroutine(LookAround()); }
private void WebTree_MaxLevelReach() { _bestWeb = WebTree.MaxRightValue(); _worstWeb = WebTree.MaxLeftValue(); WebTree = new Tree.Tree <NeiralNet.NeuralNetwork>(NeiralNet.NeuralNetwork.Mixing(WebTree.MaxLeftValue(), WebTree.MaxRightValue()), BorderLevel); }