|
@@ -257,9 +257,10 @@ namespace GFGGame
|
|
|
|
|
|
public static async ETTask ReqReConnectGate()
|
|
|
{
|
|
|
-#if UNITY_EDITOR
|
|
|
- return;
|
|
|
-#endif
|
|
|
+ if(!Application.isFocused)
|
|
|
+ {
|
|
|
+ return;
|
|
|
+ }
|
|
|
ViewManager.Show<ModalStatusView>("重新连接中...");
|
|
|
int errorCode = await LoginHelper.EnterGame(GameGlobal.zoneScene);
|
|
|
if (errorCode != ErrorCode.ERR_Success)
|