| | |
| | | finally |
| | | { |
| | | netState = NetState.DisConnected; |
| | | // var loginModel = ModelCenter.Instance.GetModel<LoginModel>(); |
| | | // loginModel.busy = false; |
| | | LoginManager.Instance.busy = false; |
| | | } |
| | | } |
| | | |
| | |
| | | finally |
| | | { |
| | | netState = NetState.AccountLogin; |
| | | // var loginModel = ModelCenter.Instance.GetModel<LoginModel>(); |
| | | // loginModel.busy = false; |
| | | // loginModel.ReAccountLogin(); |
| | | LoginManager.Instance.busy = false; |
| | | LoginManager.Instance.ReAccountLogin(); |
| | | } |
| | | } |
| | | |
| | | public void LoginOut() |
| | | { |
| | | // if (CameraController.Instance != null) |
| | | // CameraController.Instance.SetInGame(false); |
| | | // DTC0102_tagCDBPlayer.isAfterPlayerDataInitialize = false; |
| | | |
| | | try |
| | | { |
| | | // ynmbxxjUtil.Instance.RoleLoginOut(); |
| | | SDKUtils.Instance.RoleLoginOut(); |
| | | |
| | | if (mainSocket != null) |
| | | { |
| | |
| | | finally |
| | | { |
| | | netState = NetState.NerverConnect; |
| | | // TODO YYL |
| | | |
| | | // var loginModel = ModelCenter.Instance.GetModel<LoginModel>(); |
| | | // loginModel.busy = false; |
| | | LoginManager.Instance.busy = false; |
| | | |
| | | // StageLoad.Instance.PushSceneLoadCommand(new StageLoad.StageLoadCommand() |
| | | // { |
| | | // toMapId = 1, |
| | | // toLineId = 0, |
| | | // needEmpty = false, |
| | | // needLoadResource = true, |
| | | // serverType = ServerType.Main, |
| | | // isClientLoadMap = true |
| | | // }); |
| | | // //CameraManager.uiCamera.clearFlags = CameraClearFlags.SolidColor; |
| | | // //GameObject obj = GameObject.Find("NormalCanvas"); |
| | | // //int count = obj.transform.childCount; |
| | | // //for (int i = count - 1; i >= 0; --i) |
| | | // //{ |
| | | // // //Debug.LogError(obj.transform.GetChild(i).name); |
| | | // // GameObject.Destroy(obj.transform.GetChild(i).gameObject); |
| | | // //} |
| | | // //SceneManager.LoadScene("Empty"); |
| | | StageManager.Instance.ReturnToLoginScene(); |
| | | NetLinkWin.Hide(); |
| | | // DTC0403_tagPlayerLoginLoadOK.neverLoginOk = true; |
| | | } |
| | | } |
| | | |