少年修仙传客户端代码仓库
hch
2021-01-20 14fcf759f95360a21b83193b77a76e54466a6ddb
0312 修复buff状态可能叠加的问题
1个文件已修改
14 ■■■■■ 已修改文件
System/Tip/StatusTipWin.cs 14 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Tip/StatusTipWin.cs
@@ -237,15 +237,13 @@
            var totalCnt = m_TipList.Count;
            if (totalCnt > 3)
            for (int i = 0; i < m_TipList.Count; ++i)
            {
                for (int i = 0; i < m_TipList.Count; ++i)
                {
                    var tmpPosY = m_TipList[totalCnt - 1].transform.localPosition.y + 32 * (totalCnt - i - 1);
                    if (m_TipList[i].transform.localPosition.y < tmpPosY)
                    {
                        m_TipList[i].transform.localPosition = m_TipList[totalCnt - 1].transform.localPosition + new Vector3(0, 32 * (totalCnt - i - 1), 0);
                    }
                var tmpPosY = m_TipList[totalCnt - 1].transform.localPosition.y + 32 * (totalCnt - i - 1);
                if (m_TipList[i].transform.localPosition.y < tmpPosY)
                {
                    m_TipList[i].transform.localPosition = m_TipList[totalCnt - 1].transform.localPosition + new Vector3(0, 32 * (totalCnt - i - 1), 0);
                }
            }
        }