Exemplo n.º 1
0
 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;
     }
 }
Exemplo n.º 2
0
        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;
            }
        }