123456789101112131415161718192021222324252627282930313233343536 |
- 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.ToReconnect)
- {
- if(GameGlobal.zoneScene.GetComponent<SessionComponent>().SessionState == SessionState.Gate)
- {
- LoginController.ReqReConnectGate().Coroutine();
- }
- else
- {
- GameController.QuitToLoginView(false);
- }
- }
- self.ToReconnect = true;
- }
- }
- public static class DisConnectedCompnentSystem
- {
- public static void CancelAlert(this DisConnectedCompnent self)
- {
- self.ToReconnect = false;
- }
- }
- }
|