| | |
| | | Fight,
|
| | | }
|
| | | private E_MapTransferDoType m_MapTransferType;
|
| | | public E_MapTransferDoType MapTransferDoType
|
| | | {
|
| | | get
|
| | | {
|
| | | public E_MapTransferDoType MapTransferDoType {
|
| | | get {
|
| | | return m_MapTransferType;
|
| | | }
|
| | | set
|
| | | {
|
| | | set {
|
| | | m_MapTransferType = value;
|
| | | #if UNITY_EDITOR
|
| | | // Debug.LogFormat("设置方式: {0}", m_MapTransferType);
|
| | |
| | | #endregion
|
| | |
|
| | | #region npc
|
| | | public int NpcID
|
| | | {
|
| | | public int NpcID {
|
| | | get; set;
|
| | | }
|
| | | #endregion
|
| | |
| | | _model.RequestMapTransport(_npcLocation.mapId);
|
| | | m_SwitchMapFinished = false;
|
| | | m_MapID = _npcLocation.mapId;
|
| | | MapResourcesConfig _mapResConfig = DTCA127_tagMCStartChangeMap.GetMapResourcesConfig(_npcLocation.mapId, 0);
|
| | | if (_mapResConfig != null)
|
| | | {
|
| | | LoadingWin.targetMapResId = _mapResConfig.ID;
|
| | | }
|
| | | }
|
| | | // 找不到或者是本地图
|
| | | // 找不到可能是客户端对象,也可能是配置不存在
|
| | |
| | | SysNotifyMgr.Instance.ShowTip("PK_Leave");
|
| | | return;
|
| | | }
|
| | | MapResourcesConfig _config = DTCA127_tagMCStartChangeMap.GetMapResourcesConfig(npcLocation.mapId, 0);
|
| | | if (_config != null)
|
| | | {
|
| | | LoadingWin.targetMapResId = _config.ID;
|
| | | }
|
| | | else
|
| | | {
|
| | | LoadingWin.targetMapResId = 1;
|
| | | }
|
| | | }
|
| | |
|
| | | _hero.Behaviour.StopHandupAI(true);
|
| | |
| | | SysNotifyMgr.Instance.ShowTip("Map_Delivery");
|
| | | return;
|
| | | }
|
| | |
|
| | | MapResourcesConfig _config = DTCA127_tagMCStartChangeMap.GetMapResourcesConfig(mapID, 0);
|
| | | if (_config != null)
|
| | | {
|
| | | LoadingWin.targetMapResId = _config.ID;
|
| | | }
|
| | | else
|
| | | {
|
| | | LoadingWin.targetMapResId = 1;
|
| | | }
|
| | | }
|
| | |
|
| | | _hero.Behaviour.StopHandupAI(true);
|
| | |
| | |
|
| | | if (!AssetSource.sceneFromEditor)
|
| | | {
|
| | | var mapResConfig = DTCA127_tagMCStartChangeMap.GetMapResourcesConfig(mapId, 0);
|
| | | var assetValid = AssetVersionUtility.IsSceneAssetValid(mapId, 0);
|
| | | if (!assetValid)
|
| | | {
|