少年修仙传客户端代码仓库
hch
2019-10-10 c1c2cfabec79e9ccde2ada0db37275fd8aa20e6f
0312 修复返回登录界面报错
1个文件已修改
6 ■■■■■ 已修改文件
System/MainInterfacePanel/TopRightTip.cs 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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)