private void OnDisable() { if ((bool)m_parentGroupComponent && m_registeredWithParent && m_parentGroupComponent.UnRegisterComponent(base.gameObject)) { m_registeredWithParent = false; } }
private void UnRegisterWithParent() { m_parentGroupComponent = base.transform.parent.gameObject.GetComponent <AudioGroupComponent>(); if ((bool)m_parentGroupComponent && m_parentGroupComponent.UnRegisterComponent(base.gameObject)) { m_parentGroupComponent = null; m_registeredWithParent = false; } m_parentRandomComponent = base.transform.parent.gameObject.GetComponent <AudioRandomComponent>(); if ((bool)m_parentRandomComponent && m_parentRandomComponent.UnRegisterComponent(base.gameObject)) { m_parentRandomComponent = null; m_registeredWithParent = false; } }