public void RegisterOption(IGroupBoxOption option) { if (!m_GroupOptions.Contains(option)) { m_GroupOptions.Add(option); } }
public void OnOptionSelectionChanged(IGroupBoxOption selectedOption) { if (m_SelectedOption == selectedOption) { return; } m_SelectedOption = selectedOption; foreach (var option in m_GroupOptions) { option.SetSelected(option == m_SelectedOption); } }
public void UnregisterOption(IGroupBoxOption option) { m_GroupOptions.Remove(option); }