From 498dc15b953ccdca91be0b7a3f6f53cbb722f206 Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期四, 13 十一月 2025 17:47:45 +0800
Subject: [PATCH] 0312 增加签到开启的功能监听 打开界面; 招募物品数量刷新

---
 Main/System/ItemTip/OwnItemCell.cs |   20 +++++++++++++++++++-
 1 files changed, 19 insertions(+), 1 deletions(-)

diff --git a/Main/System/ItemTip/OwnItemCell.cs b/Main/System/ItemTip/OwnItemCell.cs
index 1afcef7..9a073a8 100644
--- a/Main/System/ItemTip/OwnItemCell.cs
+++ b/Main/System/ItemTip/OwnItemCell.cs
@@ -8,12 +8,30 @@
     [SerializeField] Image itemIcon;
     [SerializeField] Text numText;
     [SerializeField] Button wayBtn;
-    public int itemID;
+
+    int m_itemID;
+    public int itemID
+    {
+        get
+        {
+            return m_itemID;
+        }
+        set
+        {
+            m_itemID = value;
+            if (m_itemID != 0)
+            {
+                Display(true);
+            }
+        }
+    }
 
     void Start()
     {
         if (itemID != 0)
+        {
             itemIcon.SetOrgSprite(ItemConfig.Get(itemID).IconKey);
+        }
             
         wayBtn.AddListener(()=>
         { 

--
Gitblit v1.8.0