public void OnRightButtonPressed() { this.m_SelectionIdx++; if (this.m_Cyclic && this.m_SelectionIdx >= this.m_Options.Count) { this.m_SelectionIdx = 0; } this.m_SelectionIdx = Mathf.Clamp(this.m_SelectionIdx, 0, this.m_Options.Count - 1); this.UpdateEverything(); MenuBase target = this.m_Target; if (target != null) { target.OnSelectionChanged(this, this.m_Options.Keys.ElementAt(this.m_SelectionIdx)); } this.PlaySound(); }