public void UpdateInfo(EquipmentItem item) { if (item == null) { gameObject.SetActive(false); return; } Icon.spriteName = item.icon; Name.text = item.name; EquipType.text = item.getItemType(); EquipPinzhi.text = item.getItemQuality(); EquipSubType.text = item.getRoleLimit(); EquipNeedLevel.text = "需要等级Lv." + item.needlv; if(MonoInstancePool.getInstance<HeroManager>().getCurShowHero().level >= item.needlv) { Color c = EquipNeedLevel.color; c.r = 0f; c.g = 1f; c.b = 0f; EquipNeedLevel.color = c; } Price.text = "" + item.sellprice1; Damage.text = item.mindamage + "-" + item.maxdamage +"伤害"; if (item.changeStar != 0) setStarNum(item.changeStar); else setStarNum(0); attributeList = new int[] { item.gattribute, item.base_attribute_int, item.base_attribute_int }; setAttributeid(item); setDamond(item); LegendProperty.text = item.description; }