guodong il y a 3 ans
Parent
commit
95313f8d5d

+ 2 - 0
GameClient/Assets/Game/HotUpdate/Controller/GameController.cs

@@ -133,6 +133,8 @@ namespace GFGGame
             StudioDataManager.Instance.Clear();
             StorageDataManager.Instance.Clear();
             RechargeDataManager.Instance.Clear();
+            GameGlobal.zoneScene.GetComponent<SessionComponent>()?.Session?.Dispose();
+            GameGlobal.zoneScene.GetComponent<ServerInfosComponent>()?.ServerInfoList?.Clear();
             if (logout)
             {
                 Logout();

+ 1 - 0
GameClient/Assets/Game/HotUpdate/Views/Login/LoginView.cs

@@ -67,6 +67,7 @@ namespace GFGGame
 
             ServerInfo recentlyServerInfo = serverInfosComponent.recentlyServerInfo;
             UpdateServer(recentlyServerInfo);
+            OnClickBtnStart();
         }
 
         protected override void OnHide()