void OnDeleteBtnClick(CSUI_CompoundItem ci) { if (ci == null) { return; } if (m_Factory == null) { return; } int index = m_CompoudItems.FindIndex(item0 => item0 == ci); if (index != -1) { m_Factory.OnCancelCompound(index); } }