public void UnRegisterForState(MainUIState registeredState, OnStateBegin begin, OnStateEnd end) { m_UIStates [(int)registeredState].m_begin -= begin; m_UIStates [(int)registeredState].m_end -= end; }