public string getData(Qdata id)
        {
            //dynamic json = JValue.Parse(data.ToString());
            int    pqNo     = int.Parse(id.pqCode.ToString());
            string fromUnit = id.fromUnit;
            double fromVal  = double.Parse(id.fromVal.ToString());
            string toUnit   = id.toUnit;

            return(obj.CalConversion(pqNo, fromUnit, ref fromVal, toUnit));
        }
Esempio n. 2
0
 // Start is called before the first frame update
 void Awake()
 {
     /*
      * Vector3 pos_new = Quaternion.AngleAxis(-45, Vector3.up) * new Vector3(0f, 0f, 0f);
      * pos_new = pos_new + new Vector3(25f, 0, 25f);
      * pos_new *= 10;
      * int s = (int)pos_new.x * 500 + (int)pos_new.z;
      */
     //print("Qdata start!");
     //if (qdata == null) qdata = this;
     if (qdata == null)
     {
         qdata = this;
         if (first)
         {
             initQtable();
         }
         DontDestroyOnLoad(this);
     }
     else
     {
         Destroy(this);
     }
 }