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); } }
public GeneralItem() { wrapperConverter = new ObjectWrapperConverter(serializedObjects); dictionaryConverter = new DictionaryConverter(serializedObjects, wrapperConverter); }