private void RefreshRight(PetInfo rInfo) { var gradeInfo = rInfo.GetUpGradeInfo(rInfo.Grade + 1); var star = rInfo.GetStar(rInfo.Grade + 1); Util.SetText(rightGradeText, gradeInfo?.CombineGradeName(star)); SetStar(rightStarGroup, star); Util.ClearChildren(rightAttr); //创建属性条 var prevList = rInfo.Attribute; var showList = rInfo.GetAttribute(rInfo.Level, rInfo.Grade + 1); for (var i = 0; i < showList.Count; i++) { var t = rightAttr.AddNewChild(rightAttrTemp); t.SafeSetActive(true); var change = new ItemAttachAttr() { id = showList[i].id, type = showList[i].type, value = AttributeShowHelper.ValueForShow(showList[i].id, showList[i].value) - AttributeShowHelper.ValueForShow(prevList[i].id, prevList[i].value) }; BindProperty(t, showList[i], change); } }