Exemple #1
0
    // Use this for initialization
    void Start()
    {
        _genetics = new Genetics();
        var agents = FindObjectsOfType <Agent>();

        foreach (var agent in agents)
        {
            _genetics.AddAgent(agent);
        }
        _bestAllTimeScore = 0;
        _bestCurrentScore = 0;


        _startTime = Time.time;

        /*
         *  _prevArena = Random.Range(0, Arenas.Length);
         * Arenas[_prevArena].transform.position = new Vector3(0, 0, 0);
         */
    }