From 7cf74ef71a4b15f707a4717d40c78dae7044c3a7 Mon Sep 17 00:00:00 2001 From: lq <3298408835@qq.com> Date: Wed, 18 Dec 2024 09:23:40 +0800 Subject: [PATCH 1/5] =?UTF-8?q?=E5=BA=94=E6=80=A5=E4=BA=BA=E5=91=98?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- xiaofang/Assets/Script/Scheduled_03/Panel.cs | 28 ++++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/xiaofang/Assets/Script/Scheduled_03/Panel.cs b/xiaofang/Assets/Script/Scheduled_03/Panel.cs index c1741f68..ebb03b9a 100644 --- a/xiaofang/Assets/Script/Scheduled_03/Panel.cs +++ b/xiaofang/Assets/Script/Scheduled_03/Panel.cs @@ -115,27 +115,27 @@ public class Panel : MonoBehaviour //动态加载人员 public async void DynamicLoadingPeople() { - for(int i=0;i<10;i++) - { - GameObject item = GameObject.Instantiate(peoplePrefab, peopleCountent); - PeopleItem peopleItem = item.GetComponent(); - peopleItem.nameText.text = "角色1"; - peopleItem.peopleId = "0"; - Button peoplebutton = item.transform.Find("TextBtn").GetComponent