public void ActivateScreen <T>() where T : BaseUi { BaseUi screen = screens.Find(t => t.GetType().Name == typeof(T).Name); if (screen != null) { screen.EnableScreen(); } }