void onAdaptiveMutationProbabilityToggleValueChanged(bool value) { if (value) { mutationProbabilityController.Disable(); } else { mutationProbabilityController.Enable(); } geneticsManager.AdaptiveMutationProbability = value; }
void onCrossbreedSensorsToggleValueChanged(bool value) { if (value) { sensorsLengthController.Disable(); angleBetweenSensorsController.Disable(); } else { sensorsLengthController.Enable(); angleBetweenSensorsController.Enable(); } geneticsManager.CrossbreedSensors = value; }