Пример #1
0
 public StandardMaterial(string jsonSt, string proteinJsonSt)
 {
     try {
         _json = JSON.Parse(jsonSt);
         if (proteinJsonSt != null && proteinJsonSt != "")
         {
             _proteinJson = new ProteinMaterial(proteinJsonSt);
         }
         else
         {
             _proteinJson = null;
         }
     } catch (System.Exception /*e*/) {
     }
 }
Пример #2
0
 public StandardMaterial(JSONNode json, JSONNode proteinJson)
 {
     _json        = json;
     _proteinJson = new ProteinMaterial(proteinJson);
 }