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