UIEventComponent.cs 470 B

1234567891011121314151617181920
  1. using System;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. namespace ET.Client
  5. {
  6. /// <summary>
  7. /// 管理所有UI GameObject
  8. /// </summary>
  9. [ComponentOf(typeof(Scene))]
  10. public class UIEventComponent: Entity, IAwake
  11. {
  12. [StaticField]
  13. public static UIEventComponent Instance;
  14. public Dictionary<string, AUIEvent> UIEvents = new Dictionary<string, AUIEvent>();
  15. public Dictionary<int, Transform> UILayers = new Dictionary<int, Transform>();
  16. }
  17. }