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 +++++--- .../Assets/Scripts/UI/Panel/PanelWeaponBar/UIWeaponWidget.cs | 7 ++++--- 2 files changed, 9 insertions(+), 6 deletions(-) (limited to 'SurvivalTest/Assets/Scripts/UI') 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); } diff --git a/SurvivalTest/Assets/Scripts/UI/Panel/PanelWeaponBar/UIWeaponWidget.cs b/SurvivalTest/Assets/Scripts/UI/Panel/PanelWeaponBar/UIWeaponWidget.cs index 9a79cbc..11a18be 100644 --- a/SurvivalTest/Assets/Scripts/UI/Panel/PanelWeaponBar/UIWeaponWidget.cs +++ b/SurvivalTest/Assets/Scripts/UI/Panel/PanelWeaponBar/UIWeaponWidget.cs @@ -26,10 +26,11 @@ public class UIWeaponWidget : UIGridPropBase Image_CD.gameObject.SetActive(weapon.autoMode == WeaponBase.AutoMode.Interval); - 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); } private void Update() -- cgit v1.1-26-g67d0