LoadingBeginEvent_CreateLoadingUI.cs 309 B

123456789101112
  1. using UnityEngine;
  2. namespace ET
  3. {
  4. public class LoadingBeginEvent_CreateLoadingUI : AEvent<EventType.LoadingBegin>
  5. {
  6. public override async ETTask Run(EventType.LoadingBegin args)
  7. {
  8. await args.Scene.GetComponent<UIComponent>().Create(UIType.UILoading);
  9. }
  10. }
  11. }