|
@@ -99,15 +99,8 @@ namespace GFGGame
|
|
|
await GetServerInfos();
|
|
|
ServerInfosComponent serverInfosComponent = GameGlobal.zoneScene.GetComponent<ServerInfosComponent>();
|
|
|
|
|
|
- if (serverInfosComponent.ServerInfoList.Count > 1)
|
|
|
- {
|
|
|
- ViewManager.Hide<ModalStatusView>();
|
|
|
- EventAgent.DispatchEvent(ConstMessage.SERVER_CHANGE, serverInfosComponent.CurrentServerId);
|
|
|
- }
|
|
|
- else
|
|
|
- {
|
|
|
- await GetRoles();
|
|
|
- }
|
|
|
+ ViewManager.Hide<ModalStatusView>();
|
|
|
+ EventAgent.DispatchEvent(ConstMessage.SERVER_CHANGE, serverInfosComponent.CurrentServerId);
|
|
|
}
|
|
|
|
|
|
private static void OnLoginFail(int errorCode)
|