Ejemplo n.º 1
0
    private void NewGen()
    {
        AbstractGameInstance[] instances = FindObjectsOfType <AbstractGameInstance>();

        for (int i = 0; i < genomesToLoad.Length; i++)
        {
            XmlDocument Doc = new XmlDocument();
            Doc.LoadXml(genomesToLoad[i].text);
            var genomeList = NeatGenomeXmlIO.LoadCompleteGenomeList(Doc.DocumentElement, false, (NeatGenomeFactory)creator.genomeFactory);
            var g          = genomeList[0];
            creator.SetupGame(i, g, true);
        }
    }