diff options
Diffstat (limited to 'SurvivalTest/Assets/Scripts/UI')
-rw-r--r-- | SurvivalTest/Assets/Scripts/UI/Panel/PanelItemBar/UIItemWidget.cs | 8 | ||||
-rw-r--r-- | SurvivalTest/Assets/Scripts/UI/Panel/PanelWeaponBar/UIWeaponWidget.cs | 7 |
2 files changed, 9 insertions, 6 deletions
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<Sprite>(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() |