| | |
| | |
|
| | | yield return WaitingForSecondConst.WaitMS1000;
|
| | |
|
| | | var mapConfig = Config.Instance.Get<MapConfig>(PlayerDatas.Instance.baseData.MapID);
|
| | | if (mapConfig.MapFBType == (int)MapType.OpenCountry)
|
| | | if (CrossServerUtility.IsCrossServer())
|
| | | {
|
| | | var sjzMapConfig = Config.Instance.Get<MapConfig>(10010);
|
| | | var position = new Vector3(sjzMapConfig.BornPoints[0].x, 0, sjzMapConfig.BornPoints[0].y);
|
| | | MapTransferUtility.Send_WorldTransfer(10010, position, MapTransferType.WorldTransport, 255, 0);
|
| | | var sendInfo = new CC003_tagCGForceQuitCrossState();
|
| | | GameNetSystem.Instance.SendInfo(sendInfo);
|
| | | }
|
| | | else
|
| | | {
|
| | | ModelCenter.Instance.GetModel<DungeonModel>().ExitCurrentDungeon();
|
| | | var mapConfig = Config.Instance.Get<MapConfig>(PlayerDatas.Instance.baseData.MapID);
|
| | | if (mapConfig.MapFBType == (int)MapType.OpenCountry)
|
| | | {
|
| | | var sjzMapConfig = Config.Instance.Get<MapConfig>(10010);
|
| | | var position = new Vector3(sjzMapConfig.BornPoints[0].x, 0, sjzMapConfig.BornPoints[0].y);
|
| | | MapTransferUtility.Send_WorldTransfer(10010, position, MapTransferType.WorldTransport, 255, 0);
|
| | | }
|
| | | else
|
| | | {
|
| | | ModelCenter.Instance.GetModel<DungeonModel>().ExitCurrentDungeon();
|
| | | }
|
| | | }
|
| | |
|
| | | if (loadTimeOutCatcher != null)
|