From 453072f89753706f7476a2987e62493fae7088b7 Mon Sep 17 00:00:00 2001
From: client_Wu Xijin <364452445@qq.com>
Date: 星期二, 08 一月 2019 11:05:29 +0800
Subject: [PATCH] 5725 【前端】【1.5】跨服BOSS开发

---
 System/MainInterfacePanel/MapSwitchingBehaviour.cs |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/System/MainInterfacePanel/MapSwitchingBehaviour.cs b/System/MainInterfacePanel/MapSwitchingBehaviour.cs
index dc4460e..f26de4e 100644
--- a/System/MainInterfacePanel/MapSwitchingBehaviour.cs
+++ b/System/MainInterfacePanel/MapSwitchingBehaviour.cs
@@ -13,6 +13,7 @@
     public class MapSwitchingBehaviour:MonoBehaviour {
         [SerializeField] Button m_Btn_MapSwitch;
         List<int> MapIdList = new List<int>();
+
         DungeonModel model { get { return ModelCenter.Instance.GetModel<DungeonModel>(); } }
 
         public void InitAwake()
@@ -68,7 +69,15 @@
                    if (isOk)
                    {
                        MapTransferUtility.Instance.Clear();
-                       model.ExitCurrentDungeon();
+                       if (CrossServerUtility.IsCrossServerBoss())
+                       {
+                           var crossServerBossModel = ModelCenter.Instance.GetModel<CrossServerBossModel>();
+                           crossServerBossModel.RequestExit();
+                       }
+                       else
+                       {
+                           model.ExitCurrentDungeon();
+                       }
                    }
                });
         }

--
Gitblit v1.8.0