From 072f02678d2c5d0d79f49e923b111c4a28da3f69 Mon Sep 17 00:00:00 2001 From: chai Date: Wed, 27 Apr 2022 15:01:05 +0800 Subject: *fix bug --- SurvivalTest/Assets/Scripts/UI/Panel/PanelItemBar/UIItemWidget.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'SurvivalTest/Assets/Scripts/UI/Panel/PanelItemBar/UIItemWidget.cs') diff --git a/SurvivalTest/Assets/Scripts/UI/Panel/PanelItemBar/UIItemWidget.cs b/SurvivalTest/Assets/Scripts/UI/Panel/PanelItemBar/UIItemWidget.cs index d2c6d4d..93ff6f1 100644 --- a/SurvivalTest/Assets/Scripts/UI/Panel/PanelItemBar/UIItemWidget.cs +++ b/SurvivalTest/Assets/Scripts/UI/Panel/PanelItemBar/UIItemWidget.cs @@ -24,9 +24,11 @@ public class UIItemWidget : UIGridPropBase Image_Icon.sprite = ResourceManager.Instance.Load(info.item.iconPath); - int n = Random.Range(1, 20); - Text_Count.gameObject.SetActive(n > 1); - Text_Count.text = n.ToString(); + //int n = Random.Range(1, 20); + //Text_Count.gameObject.SetActive(n > 1); + //Text_Count.text = n.ToString(); + + Text_Count.gameObject.SetActive(false); } -- cgit v1.1-26-g67d0