Esempio n. 1
0
 public virtual void OnBeforeSerialize()
 {
     objectJsonMap.Clear();
     foreach (var kv in ObjectMap)
     {
         objectJsonMap.Add(kv.Key, JsonUtility.ToJson(kv.Value));
     }
 }
Esempio n. 2
0
 public virtual void OnBeforeSerialize()
 {
     actorsJsonMap.Clear();
     foreach (var kv in ActorsMap)
     {
         var stateJson = kv.Value.ToJson();
         actorsJsonMap.Add(kv.Key, stateJson);
     }
 }