public void OnEnable() { extension = (VegetationMaskLineExtension)target; mask = extension.GetComponent <VegetationMaskLine>(); container = FindProperty(x => x.container); closedPath = FindProperty(x => x.closedPath); }
public void OnEnable() { editorTarget = (VegetationMaskLineExtension)target; mask = editorTarget.GetComponent <VegetationMaskLine>(); dataSourceType = FindProperty(x => x.dataSourceType); dataSource = FindProperty(x => x.dataSource); closedPath = FindProperty(x => x.closedPath); douglasPeuckerReductionTolerance = FindProperty(x => x.douglasPeuckerReductionTolerance); trainControllerIntegration = new TrainController(editorTarget); }