Exemplo n.º 1
0
 public void buildModule(Director directorInput, GrowModule moduleInput, int idInput, Vector3 positionInput, int generationsTotalInput, int unitsTotalInput)
 {
     rootModule            = moduleInput;
     baseUnit              = rootModule.baseUnit;
     totalGenerations      = generationsTotalInput;
     gardenId              = idInput;
     currentGeneration     = 1;
     moduleName            = gameObject.name;
     successfulControllers = new List <string>();
     controllerFitnesses   = new List <float>();
     base.buildModule(directorInput, positionInput);
 }
Exemplo n.º 2
0
 protected override void linkPartnerModules()
 {
     base.linkPartnerModules();
     growModule = gameObject.GetComponent <GrowModule>();
 }