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