private void Init() { if ((int.MaxValue != m_AddItemNoticeName) && (int.MinValue != m_RemoveItemNoticeName)) { mUpdatesCacher = new UpdatesCacher(m_AddItemNoticeName, m_RemoveItemNoticeName, m_CallLateItemNoticeName); } mCompBridge.Dispose(); if (m_ReadyNoticeName != int.MaxValue) { m_ReadyNoticeName.Broadcast(); } }
public void Init() { if ((int.MaxValue != m_AddItemNoticeName) && (int.MinValue != m_RemoveItemNoticeName)) { mUpdatesCacher = new UpdatesCacher(m_AddItemNoticeName, m_RemoveItemNoticeName, m_CallLateItemNoticeName); } else { } if (m_ReadyNoticeName != int.MaxValue) { m_ReadyNoticeName.Broadcast(); } else { } }
private void OnDestroy() { mUpdatesCacher?.Dispose(); mUpdatesCacher = default; }