少年修仙传客户端代码仓库
Client_PangDeRong
2019-01-29 404f2b60845ec8c7b1a90eaa0ae40e7a5560cf5e
3335 防护跳转选择物品时报空
1个文件已修改
25 ■■■■■ 已修改文件
System/JadeDynastyKnapSack/JadeDynastyEquipWin.cs 25 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/JadeDynastyKnapSack/JadeDynastyEquipWin.cs
@@ -1,6 +1,7 @@
using System;
using UnityEngine;
using UnityEngine.UI;
using System.Collections;
namespace Snxxz.UI
{
@@ -45,6 +46,12 @@
            SetDisplay();
        }
        protected override void OnActived()
        {
            base.OnActived();
            StartCoroutine(UpdateLookItem());
        }
        protected override void OnAfterOpen()
        {
          
@@ -56,6 +63,7 @@
            playerPack.RefreshItemCountAct -= UpdateJadeDynastyItem;
            UI3DModelExhibition.Instance.StopShow();
            equipModel.ClearLookItemModel();
            StopAllCoroutines();
        }
        protected override void OnAfterClose()
@@ -69,7 +77,6 @@
            CreateItemLine();
            UpdatePlayerUI3DModel();
            UpdateFightPower();
            UpdateLookItem();
            TimeDownMgr.CoolTimeData data;
            if (TimeDownMgr.Instance.Get(TimeDownMgr.CoolTimeType.BagSort, out data))
            {
@@ -86,14 +93,16 @@
            }
        }
        public void UpdateLookItem()
        public IEnumerator UpdateLookItem()
        {
            if (equipModel.jumpIndex < 0) return;
            int jumpIndex = equipModel.jumpIndex;
            jumpIndex = jumpIndex > 2 ? jumpIndex - 2 : jumpIndex;
            itemCtrl.JumpIndex(jumpIndex);
            itemCtrl.m_Scorller.RefreshActiveCellViews();
            if (equipModel.jumpIndex > 0)
            {
                yield return WaitingForSecondConst.WaitMS100;
                int jumpIndex = equipModel.jumpIndex;
                jumpIndex = jumpIndex > 2 ? jumpIndex - 2 : jumpIndex;
                itemCtrl.JumpIndex(jumpIndex);
                itemCtrl.m_Scorller.RefreshActiveCellViews();
            }
        }
        private void CreateItemLine()