From c1c2cfabec79e9ccde2ada0db37275fd8aa20e6f Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期四, 10 十月 2019 20:02:24 +0800
Subject: [PATCH] 0312 修复返回登录界面报错

---
 System/MainInterfacePanel/TopRightTip.cs |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/System/MainInterfacePanel/TopRightTip.cs b/System/MainInterfacePanel/TopRightTip.cs
index 88eaaa0..8888e24 100644
--- a/System/MainInterfacePanel/TopRightTip.cs
+++ b/System/MainInterfacePanel/TopRightTip.cs
@@ -24,10 +24,13 @@
         Vector3 heroPrePosition = new Vector3(-999, -8888, 0);
         int dataMapId = 0;
         int lineId = 0;
+        bool isShow = false;
+
         MapModel model { get { return ModelCenter.Instance.GetModel<MapModel>(); } }
 
         public void Init()
         {
+            isShow = true;
             m_Map.SetListener(OpenMapWin);
             m_Daily.SetListener(OpenDailyQuestWin);
             m_BackPack.SetListener(OpenBackpack);
@@ -38,6 +41,7 @@
 
         public void UnInit()
         {
+            isShow = false;
             m_Map.RemoveAllListeners();
             m_Daily.RemoveAllListeners();
             m_BackPack.RemoveAllListeners();
@@ -96,6 +100,8 @@
 
         public void Update()
         {
+            if (!isShow) return;
+
             // 鏇存柊鍦板浘
             int curMapID = model.wannaLookLocalMap == 0 ? MapUtility.GetDataMapId() : model.wannaLookLocalMap;
             if (curMapID != 0 && curMapID != dataMapId)

--
Gitblit v1.8.0