LoadingBeginEvent_CreateLoadingUI.cs 348 B

1234567891011121314
  1. using UnityEngine;
  2. namespace ET
  3. {
  4. [Event()]
  5. public class LoadingBeginEvent_CreateLoadingUI : AEvent<EventType.LoadingBegin>
  6. {
  7. public override async ETTask Run(EventType.LoadingBegin args)
  8. {
  9. UI ui = UILoadingFactory.Create(args.Scene);
  10. Game.Scene.GetComponent<UIComponent>().Add(ui);
  11. }
  12. }
  13. }