123456789101112131415161718192021222324252627282930313233 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using GFGGame;
- namespace ET
- {
- public class DisConnectedCompnentDestroy : DestroySystem<DisConnectedCompnent>
- {
- public override void Destroy(DisConnectedCompnent self)
- {
- if(self.showAlert)
- {
- Alert.Show("服务器连接已断开!")
- .SetLeftButton(true, "返回登录", (obj) =>
- {
- GameController.QuitToLoginView(false);
- });
- }
- self.showAlert = true;
- }
- }
- public static class DisConnectedCompnentSystem
- {
- public static void CancelAlert(this DisConnectedCompnent self)
- {
- self.showAlert = false;
- }
- }
- }
|