diff --git a/xiaofang/Assets/Script/UI/PanelUI/PersonnelPanel.cs b/xiaofang/Assets/Script/UI/PanelUI/PersonnelPanel.cs index c77b4f31..5cc3f6da 100644 --- a/xiaofang/Assets/Script/UI/PanelUI/PersonnelPanel.cs +++ b/xiaofang/Assets/Script/UI/PanelUI/PersonnelPanel.cs @@ -57,6 +57,6 @@ public class PersonnelPanel : MonoBehaviour { GameObject gameObject = Instantiate(personelItem, personContent); PersonnelInfo personnelInfo = gameObject.GetComponent(); - personnelInfo.name = name; + personnelInfo.nameText.text = name; } }