| | |
| | | |
| | | public class CandidateEquipBehaviour : ScrollItem |
| | | { |
| | | [SerializeField] ImageEx m_BackGround; |
| | | [SerializeField] Image m_UnLockLabel; |
| | | [SerializeField] ItemCell m_ItemCell; |
| | | [SerializeField] Text m_EquipName; |
| | |
| | | { |
| | | var equip = packModel.GetItemByGuid(this.candidateEquip.guid); |
| | | m_ItemCell.Init(equip, true); |
| | | m_UnLockLabel.gameObject.SetActive(!model.IsLevelUnLocked(equip.config.LV)); |
| | | |
| | | var isEquipLevelUnlocked = model.IsLevelUnLocked(equip.config.LV); |
| | | m_BackGround.gray=isEquipLevelUnlocked; |
| | | m_UnLockLabel.gameObject.SetActive(!isEquipLevelUnlocked); |
| | | m_EquipName.text = equip.config.ItemName; |
| | | m_EquipName.color = UIHelper.GetUIColor(equip.config.ItemColor, true); |
| | | m_EquipSorce.text = string.Format("评分:{0}", equip.score); |