From dbb7a55e47da81a8c7c2b4bff7e053ff36af3d5a Mon Sep 17 00:00:00 2001 From: hch <305670599@qq.com> Date: 星期三, 08 一月 2025 23:00:36 +0800 Subject: [PATCH] 0312 修复部分界面物品框没特效 --- UI/Common/ItemBehaviour.cs | 15 +++++++++++++++ System/FindPrecious/FindPreciousItemBehaviour.cs | 15 +++++++++++++++ 2 files changed, 30 insertions(+), 0 deletions(-) diff --git a/System/FindPrecious/FindPreciousItemBehaviour.cs b/System/FindPrecious/FindPreciousItemBehaviour.cs index 09b2483..eddeebf 100644 --- a/System/FindPrecious/FindPreciousItemBehaviour.cs +++ b/System/FindPrecious/FindPreciousItemBehaviour.cs @@ -24,6 +24,20 @@ } return m_EquipSuitEffect; } + } + + //鐗╁搧鍩虹鐗规晥锛堢墿鍝佽〃锛� + ItemBaseEffect m_ItemBaseEffect; + ItemBaseEffect itemBaseEffect + { + get + { + if (m_ItemBaseEffect == null) + { + m_ItemBaseEffect = ItemBaseEffect.Create(transform as RectTransform); + } + return m_ItemBaseEffect; + } } int itemId = 0; @@ -44,6 +58,7 @@ } equipSuitEffect.Display(itemId); + itemBaseEffect.Display(itemId); } [ExecuteAlways] diff --git a/UI/Common/ItemBehaviour.cs b/UI/Common/ItemBehaviour.cs index 68e59b8..4a0ef7d 100644 --- a/UI/Common/ItemBehaviour.cs +++ b/UI/Common/ItemBehaviour.cs @@ -45,6 +45,20 @@ } } + //鐗╁搧鍩虹鐗规晥锛堢墿鍝佽〃锛� + ItemBaseEffect m_ItemBaseEffect; + ItemBaseEffect itemBaseEffect + { + get + { + if (m_ItemBaseEffect == null) + { + m_ItemBaseEffect = ItemBaseEffect.Create(transform as RectTransform); + } + return m_ItemBaseEffect; + } + } + bool m_ShowCount = true; public bool showCount { get { @@ -132,6 +146,7 @@ } equipSuitEffect.Display(itemId); + itemBaseEffect.Display(itemId); } catch (Exception e) { -- Gitblit v1.8.0