| | |
| | |
|
| | | if (mapID != PlayerDatas.Instance.baseData.MapID)
|
| | | {
|
| | | if (_model.IsMapUnLocked(mapID) == false)
|
| | | if (_model.IsMapUnlocked(mapID) == false)
|
| | | {
|
| | | SysNotifyMgr.Instance.ShowTip("Map_Delivery");
|
| | | return;
|
| | |
| | | }
|
| | |
|
| | | // 判断地图是否解锁
|
| | | if (_model.IsMapUnLocked(_npcLocation.mapId) == false)
|
| | | if (_model.IsMapUnlocked(_npcLocation.mapId) == false)
|
| | | {
|
| | | SysNotifyMgr.Instance.ShowTip("Map_Delivery");
|
| | | return;
|
| | |
| | | return;
|
| | | }
|
| | |
|
| | | if (_model.IsMapUnLocked(npcLocation.mapId) == false)
|
| | | if (_model.IsMapUnlocked(npcLocation.mapId) == false)
|
| | | {
|
| | | SysNotifyMgr.Instance.ShowTip("Map_Delivery");
|
| | | return;
|
| | |
| | |
|
| | | MapModel _model = ModelCenter.Instance.GetModel<MapModel>();
|
| | |
|
| | | if (_model.IsMapUnLocked(mapID) == false)
|
| | | if (_model.IsMapUnlocked(mapID) == false)
|
| | | {
|
| | | SysNotifyMgr.Instance.ShowTip("Map_Delivery");
|
| | | return;
|
| | |
| | |
|
| | | public static bool Send_WorldTransfer(int mapId, Vector3 position, MapTransferType type, byte lineID = 255, int _npcId = 0)
|
| | | {
|
| | | if (!AssetSource.sceneFromEditor && VersionConfig.Get().assetAccess != InstalledAsset.IngoreDownLoad && !AssetVersionUtility.unPriorAssetDownLoadDone)
|
| | | if (!AssetSource.sceneFromEditor && !AssetVersionUtility.IsUnpriorAssetDownLoadOk())
|
| | | {
|
| | | var mapResConfig = DTCA127_tagMCStartChangeMap.GetMapResourcesConfig(mapId, 0);
|
| | | var assetVersion = AssetVersionUtility.GetAssetVersion(StringUtility.Contact("maps/", mapResConfig.MapResources.ToLower()));
|
| | |
| | | // return;
|
| | | //}
|
| | |
|
| | | //NPCConfig _npcConfig = ConfigManager.Instance.GetTemplate<NPCConfig>(NpcID);
|
| | | //NPCConfig _npcConfig = Config.Instance.Get<NPCConfig>(NpcID);
|
| | | //if (_npcConfig == null)
|
| | | //{
|
| | | // return;
|