Esempio n. 1
0
 public static bool ReadPixel2U3DNumber(TValue v, out float value)
 {
     value = 0.0f;
     System.Int32 temp = 0;
     if (!LuaDataReadHelper.ReadNumber(v, out temp))
     {
         return(false);
     }
     value = SharedGlobalParams.PixelUnit2U3D(temp);
     return(true);
 }
Esempio n. 2
0
 public static bool ReadNumber2Float_MS(TValue v, out float value)
 {
     value = 0.0f;
     System.Int32 temp = 0;
     if (!LuaDataReadHelper.ReadNumber(v, out temp))
     {
         return(false);
     }
     value = (float)temp * 0.001f;
     return(true);
 }