少年修仙传客户端代码仓库
client_linchunjie
2018-09-25 78bfe524ea4776c47f6314e56e97f39970b00fce
System/WorldMap/LocalMapFindPath.cs
@@ -27,7 +27,7 @@
        private List<GameObject> pathNodeBehaviours = new List<GameObject>(); //寻路点池
        List<LocalMapTag> tagBehaviours = new List<LocalMapTag>();
        MapModel model { get { return  ModelCenter.Instance.GetModel<MapModel>(); } }
        MapModel model { get { return ModelCenter.Instance.GetModel<MapModel>(); } }
        int mapId = 0;
        public void Init(int _mapId)
@@ -42,7 +42,17 @@
            mapId = _mapId;
            var tagChinMap = Config.Instance.Get<MapConfig>(mapId);
            var mapResConfig = DTCA127_tagMCStartChangeMap.GetMapResourcesConfig();
            MapResourcesConfig mapResConfig = null;
            if (mapId == PlayerDatas.Instance.baseData.MapID)
            {
                mapResConfig = DTCA127_tagMCStartChangeMap.GetMapResourcesConfig();
            }
            else
            {
                mapResConfig = DTCA127_tagMCStartChangeMap.GetMapResourcesConfig(mapId, 0);
            }
            var mapWidth = mapResConfig.MapScale.x;
            var mapHeight = mapResConfig.MapScale.y;