summaryrefslogtreecommitdiff
path: root/SurvivalTest/Assets/Scripts/UI
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2022-04-28 13:58:20 +0800
committerchai <chaifix@163.com>2022-04-28 13:58:20 +0800
commit88a6b32e792910e11451da18eb5fb8c103235842 (patch)
treee64c5feaf46b7d06ae096e3719515c0cafc74dc5 /SurvivalTest/Assets/Scripts/UI
parent072f02678d2c5d0d79f49e923b111c4a28da3f69 (diff)
+misc
Diffstat (limited to 'SurvivalTest/Assets/Scripts/UI')
-rw-r--r--SurvivalTest/Assets/Scripts/UI/Panel/PanelWeaponBar/UIWeaponWidget.cs8
1 files changed, 3 insertions, 5 deletions
diff --git a/SurvivalTest/Assets/Scripts/UI/Panel/PanelWeaponBar/UIWeaponWidget.cs b/SurvivalTest/Assets/Scripts/UI/Panel/PanelWeaponBar/UIWeaponWidget.cs
index 11a18be..d2740e6 100644
--- a/SurvivalTest/Assets/Scripts/UI/Panel/PanelWeaponBar/UIWeaponWidget.cs
+++ b/SurvivalTest/Assets/Scripts/UI/Panel/PanelWeaponBar/UIWeaponWidget.cs
@@ -26,11 +26,9 @@ 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();
-
- Text_Count.gameObject.SetActive(false);
+ int n = weapon.count;
+ Text_Count.gameObject.SetActive(n > 1);
+ Text_Count.text = n.ToString();
}
private void Update()