예제 #1
0
 // 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;
 }
예제 #2
0
    private void Start()
    {
        BotData = new Statistic( );

        _sun = GameObject.FindWithTag("Sun");
        Web  = new NeuralNetwork(TrainCoof);
        StartCoroutine(HPUpdateEnrgy());
        StartCoroutine(LookAround());
    }
예제 #3
0
 private void WebTree_MaxLevelReach()
 {
     _bestWeb  = WebTree.MaxRightValue();
     _worstWeb = WebTree.MaxLeftValue();
     WebTree   = new Tree.Tree <NeiralNet.NeuralNetwork>(NeiralNet.NeuralNetwork.Mixing(WebTree.MaxLeftValue(), WebTree.MaxRightValue()), BorderLevel);
 }