UIComponent.cs 799 B

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