少年修仙传客户端代码仓库
client_linchunjie
2018-09-14 a0ede150686a218c92b901b1f20aef12a9913890
Fight/MapTransferUtility.cs
@@ -80,7 +80,7 @@
        if (mapID != PlayerDatas.Instance.baseData.MapID)
        {
            if (_model.IsMapUnLocked(mapID) == false)
            if (_model.IsMapUnlocked(mapID) == false)
            {
                SysNotifyMgr.Instance.ShowTip("Map_Delivery");
                return;
@@ -287,6 +287,7 @@
                            {
                                //Debug.LogFormat(" |-- 不在同一分线: {0} != {1}", _lineID, PlayerDatas.Instance.baseData.FBID);
                                _forceTransfer = true;
                                npcID = 0;
                            }
                        }
                        else
@@ -294,8 +295,6 @@
                            Debug.LogErrorFormat("对应的地图ID: {0} 在配置中没有对应的分线id", _npcLocation.mapId);
                        }
                    }
                    npcID = 0;
                }
                // 如果不是处于相同地图, 则切图
@@ -409,7 +408,7 @@
            }
            // 判断地图是否解锁
            if (_model.IsMapUnLocked(_npcLocation.mapId) == false)
            if (_model.IsMapUnlocked(_npcLocation.mapId) == false)
            {
                SysNotifyMgr.Instance.ShowTip("Map_Delivery");
                return;
@@ -643,7 +642,7 @@
                return;
            }
            if (_model.IsMapUnLocked(npcLocation.mapId) == false)
            if (_model.IsMapUnlocked(npcLocation.mapId) == false)
            {
                SysNotifyMgr.Instance.ShowTip("Map_Delivery");
                return;
@@ -723,7 +722,7 @@
            MapModel _model = ModelCenter.Instance.GetModel<MapModel>();
            if (_model.IsMapUnLocked(mapID) == false)
            if (_model.IsMapUnlocked(mapID) == false)
            {
                SysNotifyMgr.Instance.ShowTip("Map_Delivery");
                return;
@@ -748,7 +747,7 @@
    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()));
@@ -787,7 +786,7 @@
        //    return;
        //}
        //NPCConfig _npcConfig = ConfigManager.Instance.GetTemplate<NPCConfig>(NpcID);
        //NPCConfig _npcConfig = Config.Instance.Get<NPCConfig>(NpcID);
        //if (_npcConfig == null)
        //{
        //    return;