Exemplo n.º 1
0
    void CreateEntities()
    {
        entities = new List <WispAI>();

        for (int i = 0; i < populationSize; i++)
        {
            WispAI wispAI = Instantiate(entityPrefab, wispSpawnPosition.position, entityPrefab.transform.rotation).GetComponent <WispAI>();
            wispAI.InitGathering(neuralNetworks[i], WispTargetPosition);
            entities.Add(wispAI);
        }
    }