void Start() { GenePool.Initialize(Managers.Entity.numberOfVillagers, Managers.Entity.numberOfWerewolves); GenePool.CreatePopulation(); mayorStartPos = Managers.Entity.MainObjs["Mayor"].transform.position; firstRound = true; StartNewRound(); }
// Use this for initialization void Start() { Cars = new List <VehicleDriver>(); pool = new GenePool(); pool.PoolSize = NumIndividuals; pool.Initialize(new int[] { 17, 10, 10, 2 }); for (int i = 0; i < pool.PoolSize; i++) { VehicleDriver car = (Instantiate(CarPrototype) as GameObject).GetComponent <VehicleDriver>(); car.network = pool.Individuals[i]; Cars.Add(car); } GetComponent <TrackGenerator>().GenerateTrack(); Cars[0].FollowedCar = true; }