UIComponent.cs 754 B

123456789101112131415161718192021222324
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using XRTool.Util;
  5. namespace ShadowStudio.Model
  6. {
  7. public class UIComponent : GoodsComponen
  8. {
  9. private WorldDlgContainer dlgContainer;
  10. public WorldDlgContainer DlgContainer { get => dlgContainer; set => dlgContainer = value; }
  11. public override void SetContainer(ArtContainerHandler container, Object art, ArtInfo info)
  12. {
  13. DlgContainer = container as WorldDlgContainer;
  14. if (DlgContainer&&DlgContainer.Dlg && DlgContainer.Dlg.Container)
  15. {
  16. UnityUtil.SetParent(DlgContainer.Dlg.Container, transform);
  17. }
  18. base.SetContainer(container, art, info);
  19. }
  20. }
  21. }