public UIComponent CheckFocus(InputManager input) { for (int i = Components.Count - 1; i >= 0; i--) { UIComponent comp = Components[i]; UIComponent option = comp.CheckFocus(0, 0, input); if (option != null) { return(option); } } return(null); }