public static void R <T>(string viewPath, UiLayer layer, UiLoadType loadType) where T : UiInstance { var fullName = typeof(T).FullName; if (fullName != null && RegisteredUi.ContainsKey(fullName)) { return; } var uiInfo = new UiInfo { Type = typeof(T), ViewPath = viewPath, Layer = layer, LoadType = loadType, }; var name = typeof(T).FullName; if (name != null) { RegisteredUi[name] = uiInfo; } }
private static void _ <T>(string viewPath, UiLayer layer, UiLoadType loadType) where T : UiInstance { UiManager.R <T>("ui/prefabs/" + viewPath, layer, loadType); }