12345678910111213141516171819 |
- using ET.Client;
- using ET.EventType;
- using ET;
- [Event]
- public class NetClosedEventHandler : BEvent<NetClosed>
- {
- protected override async ETTask OnEvent(NetClosed _)
- {
- await UICommonDialog1.Show("确认", "检测到网络连接断开", () => {
- EventSystem.Instance.Publish<ShowLoginUIEvent>();
- GlobalViewMgr.Instance.ReOpenGame();
- UnitMgr.Instance.RecycleUnits();
- BattleMgr.Instance.InitBattleLayer();
- BattleUnit.Reset();
- }, null);
- }
- }
|