Model.UIComponent.Create C# (CSharp) Method

Create() public method

public Create ( UIType type ) : UI
type UIType
return UI
		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}");
			}
		}