Browse Source

登录优化

guodong 3 years ago
parent
commit
208747aaa0
1 changed files with 2 additions and 1 deletions
  1. 2 1
      GameClient/Assets/Game/HotUpdate/Views/Login/LoginView.cs

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

@@ -57,7 +57,6 @@ namespace GFGGame
                 _sceneObject = GameObject.Instantiate(_scenePrefab);
             }
             SceneController.UpdateLoginScene(_sceneObject);
-            _ui.m_btnLogout.visible = GameController.CheckLoginCache(false);
             if (!_ui.m_btnLogout.visible)
             {
                 ViewManager.Show<LoginInputView>();
@@ -83,8 +82,10 @@ namespace GFGGame
             }
             base.OnHide();
         }
+
         private void UpdateServer(ServerInfo info)
         {
+            _ui.m_btnLogout.visible = GameController.CheckLoginCache(false);
             ServerInfosComponent serverInfosComponent = GameGlobal.zoneScene.GetComponent<ServerInfosComponent>();
             if (serverInfosComponent.ServerInfoList.Count == 0)
             {