Esempio n. 1
0
 public virtual void OnAfterDeserialize()
 {
     try
     {
         var converter = new DictionaryConverter(serializedObjects, wrapperConverter);
         fields = JsonConvert.DeserializeObject <Dictionary <string, ObjectWrapper> >(json, dictionaryConverter);
     }
     catch (Exception ex)
     {
         Debug.LogErrorFormat("Json:{0},Error:{1},Detail:{2}", json, ex.Message, ex.StackTrace);
     }
 }
Esempio n. 2
0
 public GeneralItem()
 {
     wrapperConverter    = new ObjectWrapperConverter(serializedObjects);
     dictionaryConverter = new DictionaryConverter(serializedObjects, wrapperConverter);
 }