private void CheckLayer_T_Option(LayerTransformationOptions newOption) { if (LayerTransformationOption != newOption) { LayerTransformationOption = newOption; DestroyLayers(); } }
void OnEnable() { lm = (LayersManager)target; layersNumber = lm.layers.Count; layerIndex_init = lm.layerIndex_init; layerTranformationOption = (LayerTransformationOptions)lm.layerTranformationOption; y_Offset = lm.Y_Offset; z_Offset = lm.Z_Offset; cylinderIntervalDegree = lm.CylinderIntervalDegree; cylinderRadius = lm.CylinderRadius; switchSpeed = lm.switchSpeed; useFakePespective = lm.useFakePespective; Debug.Log("op: " + layerTranformationOption); }