UIComponent.cs 454 B

123456789101112131415161718192021222324252627
  1. using System.Collections.Generic;
  2. namespace ET.Client
  3. {
  4. /// <summary>
  5. /// 管理Scene上的UI
  6. /// </summary>
  7. [ComponentOf]
  8. public class UIComponent: Entity, IAwake
  9. {
  10. public Dictionary<string, EntityRef<UI>> UIs = new();
  11. private EntityRef<UIGlobalComponent> uiGlobalComponent;
  12. public UIGlobalComponent UIGlobalComponent
  13. {
  14. get
  15. {
  16. return this.uiGlobalComponent;
  17. }
  18. set
  19. {
  20. this.uiGlobalComponent = value;
  21. }
  22. }
  23. }
  24. }