From b8bcfae71df34b7b422dd59741e1e9c0358e4142 Mon Sep 17 00:00:00 2001
From: client_Hale <339726288@qq.com>
Date: 星期四, 10 一月 2019 18:02:06 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts

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