예제 #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);
 }
예제 #2
0
 protected override void linkPartnerModules()
 {
     base.linkPartnerModules();
     growModule = gameObject.GetComponent <GrowModule>();
 }