| | |
| | | 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
|
| | |
| | | MapModel _model = ModelCenter.Instance.GetModel<MapModel>();
|
| | | GActor _npc = null;
|
| | | // 加入判断是否世界BOSS判断
|
| | | WorldBossConfig _worldBoss = Config.Instance.Get<WorldBossConfig>(npcID);
|
| | | var _worldBoss = Config.Instance.Get<WorldBossConfig>(npcID);
|
| | | var dogzBoss = Config.Instance.Get<DogzDungeonConfig>(npcID);
|
| | |
|
| | | if (_findLocation)
|
| | | {
|
| | | var _mapConfig = Config.Instance.Get<MapConfig>(_npcLocation.mapId);
|
| | | // 中立地图
|
| | | if (_mapConfig.Camp == 5 && _worldBoss != null)
|
| | | if (_mapConfig.Camp == 5 && (_worldBoss != null || dogzBoss != null))
|
| | | {
|
| | | if (_npcLocation.mapId == PlayerDatas.Instance.baseData.MapID)
|
| | | {
|
| | |
| | | }
|
| | |
|
| | | FairyGrabBossConfig _fairyBoss = Config.Instance.Get<FairyGrabBossConfig>(npcID);
|
| | | bool _isBoss = _worldBoss != null || _fairyBoss != null;
|
| | | bool _isBoss = _worldBoss != null || _fairyBoss != null || dogzBoss != null;
|
| | | if (_isBoss && _findLocation)
|
| | | {
|
| | | //Debug.LogFormat("目标是boss");
|
| | |
| | | var mapId = _npcLocation.mapId;
|
| | | var position = new Vector3(_mapConfig.BornPoints[0].x, 0, _mapConfig.BornPoints[0].y);
|
| | | Send_WorldTransfer(mapId, position, MapTransferType.WorldTransport, (byte)_lineID, npcID);
|
| | | |
| | |
|
| | | forceMove = true;
|
| | |
|
| | | if (BossFakeLineUtility.Instance.IsShuntBoss(npcID))
|
| | |
| | | // 副本中不可以传送
|
| | | if (_curMapConfig.MapFBType != 0)
|
| | | {
|
| | | SysNotifyMgr.Instance.ShowTip("Map_Delivery");
|
| | | SysNotifyMgr.Instance.ShowTip("InDungeon_CantGo");
|
| | | return;
|
| | | }
|
| | |
|