protected override void ReadFromImpl(object obj) { base.ReadFromImpl(obj); if (obj == null) { return; } object persistentCalls = m_persistentCallGroupInfo.GetValue(obj); if (persistentCalls == null) { return; } object calls = m_callsInfo.GetValue(persistentCalls); if (calls == null) { return; } IList list = (IList)calls; m_calls = new PersistentPersistentCall[list.Count]; for (int i = 0; i < list.Count; ++i) { object call = list[i]; PersistentPersistentCall persistentCall = new PersistentPersistentCall(); persistentCall.ReadFrom(call); m_calls[i] = persistentCall; } }
public void ReadFrom(UnityEventBase obj, IIDMap idMap) { if (obj == null) { return; } object persistentCalls = m_persistentCallGroupInfo.GetValue(obj); if (persistentCalls == null) { return; } object calls = m_callsInfo.GetValue(persistentCalls); if (calls == null) { return; } IList list = (IList)calls; m_calls = new PersistentPersistentCall[list.Count]; for (int i = 0; i < list.Count; ++i) { object call = list[i]; PersistentPersistentCall persistentCall = new PersistentPersistentCall(); persistentCall.ReadFrom(call, idMap); m_calls[i] = persistentCall; } }