| | |
| | | |
| | | if (_mapConfig.MapFBType != 0) |
| | | { |
| | | DungeonModel _model = ModelCenter.Instance.GetModel<DungeonModel>();
|
| | | DungeonModel _model = ModelCenter.Instance.GetModel<DungeonModel>(); |
| | | _realMapDataID = _model.GetDataMapIdByMapId(_realMapDataID); |
| | | |
| | | if (package.MapID != 52020 && package.MapID != 52010)
|
| | | {
|
| | | if (package.MapID != 52020 && package.MapID != 52010) |
| | | { |
| | | DTCA127_tagMCStartChangeMap.LineID = package.FuncLineID; |
| | | } |
| | | }
|
| | |
|
| | | var _mapResConfig = DTCA127_tagMCStartChangeMap.GetMapResourcesConfig(_realMapDataID, DTCA127_tagMCStartChangeMap.LineID);
|
| | |
|
| | | if (_mapResConfig == null)
|
| | | {
|
| | | DTCA127_tagMCStartChangeMap.LineID = 0;
|
| | | _mapResConfig = DTCA127_tagMCStartChangeMap.GetMapResourcesConfig(_realMapDataID, DTCA127_tagMCStartChangeMap.LineID);
|
| | | } |
| | | |
| | | var _mapResConfig = DTCA127_tagMCStartChangeMap.GetMapResourcesConfig(_realMapDataID, DTCA127_tagMCStartChangeMap.LineID); |
| | | |
| | | if (_mapResConfig == null) |
| | | { |
| | | DTCA127_tagMCStartChangeMap.LineID = 0; |
| | | _mapResConfig = DTCA127_tagMCStartChangeMap.GetMapResourcesConfig(_realMapDataID, DTCA127_tagMCStartChangeMap.LineID); |
| | | } |
| | | |
| | | if (!WindowCenter.Instance.IsOpen<LoadingWin>()) |
| | |
| | | return; |
| | | } |
| | | |
| | | if(_mapConfig.CanRide == 0) |
| | | { |
| | | _hero.SwitchHorse(0); |
| | | DTC0428_tagPlayerRideHorse.Send_tagPlayerRideHorse(false); |
| | | } |
| | | _hero.ClearPathFindTarget(); |
| | | _hero.OnPathFindStop -= MapTransferUtility.Instance.OnHeroStopPathFind; |
| | | _hero.StopAll(); |