public void AddUiContainer(UiContainer uiContainer) { UiContainers.Add(uiContainer); // also subscribe to their selected/focused events uiContainer.SubscribeFunctionToControlSelectEvents(UiSelected); uiContainer.SubscribeFunctionToControlFocusEvents(UiFocused); }