Exemplo n.º 1
0
 public override void OnAfterDeserialize()
 {
     if (string.IsNullOrEmpty(_serializedCollection))
     {
         return;
     }
     _tempList = SEJsonConverter.Deserialize <List <T> >(_serializedCollection);
     if (_tempList == null)
     {
         Debug.LogError("Missin data");
     }
 }
Exemplo n.º 2
0
        public override void LoadFromFile()
        {
            string fullpathLog = string.Format("{0}/{1}.txt", Application.dataPath, CollectionName);

            _tempList = SEJsonConverter.Deserialize <List <T> >(File.ReadAllText(fullpathLog));
        }
Exemplo n.º 3
0
 public override void OnBeforeSerialize()
 {
     _serializedCollection = SEJsonConverter.Serialize(_tempList);
 }