public void RefreshMaterialEquipment() { EquipmentInfo[] materials = EquipmentStrengthenProxy.instance.materialsEquipInfo; int selectedEquipmentCount = materials.Length; for (int i = 0; i < selectedEquipmentCount; i++) { TransformUtil.ClearChildren(selectedMaterialRootTran[i], true); if (materials[i] != null) { CommonEquipmentIcon equipmentIconButton = CommonEquipmentIcon.CreateSmallIcon(selectedMaterialRootTran[i]); equipmentIconButton.SetEquipmentInfo(materials[i]); equipmentIconButton.GetEquipmentDesButton().SetDelay(0.3f); equipmentIconButton.SetSelect(true); equipmentIconButton.HideSelect(); equipmentIconButton.onClickHandler = ClickEquipmentIconButton; } } }