|
@@ -64,7 +64,7 @@ namespace GFGGame
|
|
|
SceneController.UpdateLoginScene(_sceneObject);
|
|
|
ServerInfosComponent serverInfosComponent = GameGlobal.zoneScene.GetComponent<ServerInfosComponent>();
|
|
|
ServerInfo recentlyServerInfo = serverInfosComponent.recentlyServerInfo;
|
|
|
- UpdateServer(recentlyServerInfo);
|
|
|
+ // UpdateServer(recentlyServerInfo);
|
|
|
_ui.m_btnStart.visible = false;
|
|
|
_ui.m_btnTapLogin.visible = false;
|
|
|
InitLoginStatus(serverInfosComponent).Coroutine();
|
|
@@ -96,16 +96,16 @@ namespace GFGGame
|
|
|
}
|
|
|
//else//自有登录
|
|
|
//{
|
|
|
- _ui.m_btnStart.visible = true;
|
|
|
- //尝试自动登录
|
|
|
- if (serverInfosComponent.ServerInfoList.Count <= 0)
|
|
|
- {
|
|
|
- OnClickBtnStart();
|
|
|
- }
|
|
|
- if (!_ui.m_btnLogout.visible)
|
|
|
- {
|
|
|
- ViewManager.Show<LoginInputView>();
|
|
|
- }
|
|
|
+ _ui.m_btnStart.visible = true;
|
|
|
+ //尝试自动登录
|
|
|
+ if (serverInfosComponent.ServerInfoList.Count <= 0)
|
|
|
+ {
|
|
|
+ OnClickBtnStart();
|
|
|
+ }
|
|
|
+ if (!_ui.m_btnLogout.visible)
|
|
|
+ {
|
|
|
+ ViewManager.Show<LoginInputView>();
|
|
|
+ }
|
|
|
//}
|
|
|
}
|
|
|
|
|
@@ -178,7 +178,8 @@ namespace GFGGame
|
|
|
var serverInfosComponent = GameGlobal.zoneScene.GetComponent<ServerInfosComponent>();
|
|
|
if (serverInfosComponent.ServerInfoList.Count <= 0)
|
|
|
{
|
|
|
- if (!GameController.CheckLoginCache(true))
|
|
|
+ bool login = GameController.CheckLoginCache(true);
|
|
|
+ if (!login)
|
|
|
{
|
|
|
ViewManager.Show<LoginInputView>();
|
|
|
}
|