EnterMapFinish_RemoveLobbyUI.cs 335 B

1234567891011
  1. namespace ET
  2. {
  3. public class EnterMapFinish_RemoveLobbyUI: AEvent<EventType.EnterMapFinish>
  4. {
  5. public override async ETTask Run(EventType.EnterMapFinish args)
  6. {
  7. Game.Scene.GetComponent<UIComponent>().Remove(UIType.UILobby);
  8. Game.Scene.GetComponent<ResourcesComponent>().UnloadBundle(UIType.UILobby.StringToAB());
  9. }
  10. }
  11. }