public void Initialize() { BaseMenu[] menus = GameObject.FindObjectsOfType <BaseMenu>(); foreach (var menu in menus) { _menuManager.RegisterMenu(menu); } }