public UI Create(UIType type) { try { UI ui = this.UiTypes[type].Create(this.GetOwner<Scene>(), type, this.Root); this.uis.Add(type, ui); return ui; } catch (Exception e) { throw new Exception($"{type} UI 错误: {e}"); } }