void Update() { if (this.m_panelType == Panel.SpeedRestrictions && this.m_scrollablePanel.isVisible) { (this.m_scrollablePanel.components[m_selectedIndex] as UIButton).state = UIButton.ButtonState.Focused; } }