示例#1
0
    // Use this for initialization
    void Start()
    {
        mf = GetComponent <MeshFilter>();
        var calc = new HydrogenCalc(4, 2, 2);

        level   = calc.GetLevelSetValue(0.5f);
        func    = calc;
        mf.mesh = Gen();
    }
示例#2
0
 void RefreshData()
 {
     current = calcs[calcIndex];
     vrc.SetFieldData(current);
     if (orbitalText != null && mText != null)
     {
         orbitalText.text = current.OrbitalLabel;
         mText.text       = current.MLabel;
     }
 }