From 4885f9bbece9670bc5be45c07f2598c6cff1440e Mon Sep 17 00:00:00 2001
From: client_Wu Xijin <364452445@qq.com>
Date: 星期日, 30 十二月 2018 16:06:08 +0800
Subject: [PATCH] 3335 稳固跨服pk主界面打开逻辑

---
 System/MainInterfacePanel/MainInterfaceWin.cs |   14 ++++++--------
 1 files changed, 6 insertions(+), 8 deletions(-)

diff --git a/System/MainInterfacePanel/MainInterfaceWin.cs b/System/MainInterfacePanel/MainInterfaceWin.cs
index 90f37bc..959cfe0 100644
--- a/System/MainInterfacePanel/MainInterfaceWin.cs
+++ b/System/MainInterfacePanel/MainInterfaceWin.cs
@@ -505,7 +505,7 @@
 
         private void OnEnterOrExitArea(MapArea.E_Type _areaType, bool _enter)
         {
-             //DebugEx.LogError(_areaType + ".." + _enter);
+            //DebugEx.LogError(_areaType + ".." + _enter);
             if (PlayerDatas.Instance.baseData.MapID == 10040 && _areaType != MapArea.E_Type.Boss && _enter)
             {
                 DTCA202_tagMCAttackMode.Send_SwitchAttackMode((E_AttackMode)onMainModel.AreaState);
@@ -576,7 +576,7 @@
             int[] atkInt = pKModel.GetArea(config.AtkType).ToArray();
             if (onMainModel.ShieldedArea.Contains(PlayerDatas.Instance.baseData.MapID))
             {
-  
+
             }
             else
             {
@@ -640,7 +640,7 @@
                         WindowCenter.Instance.Open<IceCrystalVeinWin>();
                     }
                     iceCrystalVeinModel.IsIceCrystalVeinCopy = false;
-                }          
+                }
             }
 
         }
@@ -984,7 +984,7 @@
                 else
                 {
                     _ExpRate.text = (float)Math.Round((double)nowVlaue / maxValue, 2, MidpointRounding.AwayFromZero) * 100 + "%";
-                }          
+                }
             }
         }
 
@@ -1271,10 +1271,7 @@
         {
             if (PlayerDatas.Instance.baseData.ExAttr5 == 1)//鏄惁鍐嶈法鏈嶅壇鏈腑
             {
-                if (!WindowCenter.Instance.IsOpen("FightingPKWin"))
-                {
-                    WindowCenter.Instance.Open<FightingPKWin>();
-                }
+                WindowCenter.Instance.Open<FightingPKWin>();
                 m_HeadPortraitTip.gameObject.SetActive(false);
                 CopyOfThePanel.gameObject.SetActive(false);
                 _SwitchShowBtn.gameObject.SetActive(false);
@@ -1291,6 +1288,7 @@
             }
             else
             {
+                WindowCenter.Instance.Close<FightingPKWin>();
                 m_HeadPortraitTip.gameObject.SetActive(true);
                 CopyOfThePanel.gameObject.SetActive(true);
                 _SwitchShowBtn.gameObject.SetActive(true);

--
Gitblit v1.8.0