public void EndTask() { if (m_endDelegate != null) { m_clientGroup.CallFn(m_endDelegate, null); } m_clientGroup.RemoveObject(m_delegate.Target); }