| | |
| | | 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)
|
| | |
| | |
|
| | | 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;
|
| | |
|