From 31a2f41eb5279bf6057978d84875f4e509b706f5 Mon Sep 17 00:00:00 2001
From: client_Wu Xijin <364452445@qq.com>
Date: 星期三, 27 三月 2019 10:00:18 +0800
Subject: [PATCH] 3335 装备界面0星不显示星级
---
System/Equip/EquipSlotBehaviour.cs | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/System/Equip/EquipSlotBehaviour.cs b/System/Equip/EquipSlotBehaviour.cs
index 1479246..6b23841 100644
--- a/System/Equip/EquipSlotBehaviour.cs
+++ b/System/Equip/EquipSlotBehaviour.cs
@@ -106,8 +106,10 @@
m_SlotName.gameObject.SetActive(false);
m_Icon.SetSprite(equip.config.IconKey);
m_IconFrame.SetItemBackGround(equip.config.ItemColor);
+
+ var starLevel = starModel.GetEquipStarLevel(slot.equipPosition);
m_Star.gameObject.SetActive(true);
- m_Star.text = string.Format("{0}鏄�", starModel.GetEquipStarLevel(slot.equipPosition));
+ m_Star.text = starLevel > 1 ? string.Format("{0}鏄�", starLevel) : "";
}
}
}
--
Gitblit v1.8.0