/** 更新属性显示对象 */ private void updateMountsAttr() { if (mountsAttrPoint.transform.childCount > 0) { Utils.RemoveAllChild(mountsAttrPoint.transform); } GameObject mountsAttrObj = NGUITools.AddChild(mountsAttrPoint, mountsAttrPrefab); MountsAttrItem mountsAttrItem = mountsAttrObj.GetComponent <MountsAttrItem>(); mountsAttrItem.init(fatherWindow, mounts); }
/** 更新属性显示对象 */ private void updateMountsAttr() { MountsAttrItem mountsAttrItem = mountsAttr.GetComponent <MountsAttrItem>(); mountsAttrItem.init(fatherWindow, mounts); }