public static void GetEnum(ref GlassMeshScaleFix fixType, float currentScale) { if (currentScale == scale_fbx) { fixType = GlassMeshScaleFix.fbx; } else if (currentScale == scale_none) { fixType = GlassMeshScaleFix.None; } else { fixType = GlassMeshScaleFix.custom; } }
public static void GetScale(GlassMeshScaleFix fixType, ref float currentScale) { switch (fixType) { case GlassMeshScaleFix.fbx: currentScale = scale_fbx; break; case GlassMeshScaleFix.None: currentScale = scale_none; break; default: break; } }