using System.Collections; using System.Collections.Generic; using UnityEngine; using XRTool.Util; namespace ShadowStudio.Model { public class UIComponent : GoodsComponen { private WorldDlgContainer dlgContainer; public WorldDlgContainer DlgContainer { get => dlgContainer; set => dlgContainer = value; } public override void SetContainer(ArtContainerHandler container, Object art, ArtInfo info) { DlgContainer = container as WorldDlgContainer; if (DlgContainer&&DlgContainer.Dlg && DlgContainer.Dlg.Container) { UnityUtil.SetParent(DlgContainer.Dlg.Container, transform); } base.SetContainer(container, art, info); } } }