名字修改显示

This commit is contained in:
lq 2025-01-03 17:31:45 +08:00
parent 3d0987db1a
commit 67564d89f0

View File

@ -57,6 +57,6 @@ public class PersonnelPanel : MonoBehaviour
{
GameObject gameObject = Instantiate(personelItem, personContent);
PersonnelInfo personnelInfo = gameObject.GetComponent<PersonnelInfo>();
personnelInfo.name = name;
personnelInfo.nameText.text = name;
}
}