From e34c97432ce8b9ad9a76a8d7c6a943191aaf776a Mon Sep 17 00:00:00 2001 From: lq <3298408835@qq.com> Date: Thu, 12 Dec 2024 15:21:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=BA=E5=91=98=E6=95=B0=E6=8D=AE=E4=B8=8A?= =?UTF-8?q?=E4=BC=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- xiaofang/Assets/Scenes/Schedule_03.unity | 1 + xiaofang/Assets/Scenes/loginscene.unity | 4 +- .../DirllInterface/createTemplateInterface.cs | 2 +- xiaofang/Assets/Script/Scheduled_03/Panel.cs | 61 +++++++++++++------ .../Script/UI/PanelUI/EvacuationPanel.cs | 4 +- .../Assets/Script/UI/PanelUI/MaterialPanel.cs | 3 +- .../Script/UI/PanelUI/SelectScenePanel.cs | 4 +- xiaofang/Assets/Script/UI/PeopleItem.cs | 4 +- xiaofang/Assets/Script/UI/SceneItem.cs | 4 +- xiaofang/Assets/yhj/scripts/JueseChoicePop.cs | 2 +- 10 files changed, 57 insertions(+), 32 deletions(-) diff --git a/xiaofang/Assets/Scenes/Schedule_03.unity b/xiaofang/Assets/Scenes/Schedule_03.unity index 699994b8..de73d294 100644 --- a/xiaofang/Assets/Scenes/Schedule_03.unity +++ b/xiaofang/Assets/Scenes/Schedule_03.unity @@ -2256,6 +2256,7 @@ MonoBehaviour: duty: scene: dutyId: 0 + peopleId: peopleList: [] userInfo: {fileID: 1201261371} managerPanel1: {fileID: 617308873} diff --git a/xiaofang/Assets/Scenes/loginscene.unity b/xiaofang/Assets/Scenes/loginscene.unity index 35a3fdc9..8fe0da7e 100644 --- a/xiaofang/Assets/Scenes/loginscene.unity +++ b/xiaofang/Assets/Scenes/loginscene.unity @@ -385,7 +385,7 @@ RectTransform: m_AnchorMin: {x: 0, y: 1} m_AnchorMax: {x: 0, y: 1} m_AnchoredPosition: {x: 488, y: -278.8} - m_SizeDelta: {x: 640, y: 0} + m_SizeDelta: {x: 0, y: 0} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &131408495 CanvasRenderer: @@ -494,7 +494,7 @@ RectTransform: m_AnchorMin: {x: 0, y: 1} m_AnchorMax: {x: 0, y: 1} m_AnchoredPosition: {x: 488, y: -498.8} - m_SizeDelta: {x: 300, y: 0} + m_SizeDelta: {x: 0, y: 0} m_Pivot: {x: 0.5, y: 0.5} --- !u!114 &142787312 MonoBehaviour: diff --git a/xiaofang/Assets/Script/DirllInterface/createTemplateInterface.cs b/xiaofang/Assets/Script/DirllInterface/createTemplateInterface.cs index 191e06fc..9792cdc5 100644 --- a/xiaofang/Assets/Script/DirllInterface/createTemplateInterface.cs +++ b/xiaofang/Assets/Script/DirllInterface/createTemplateInterface.cs @@ -56,7 +56,7 @@ public class PlayerList// } public class NpcList//NPC列表 { - public string npcId;//NPC编号-------------------------------必须 + public string npcId;//NPC编号--------------------------------必须 public string areaId;//区域编号------------------------------必须 public int birthAreaId;//数量--------------------------------必须 } diff --git a/xiaofang/Assets/Script/Scheduled_03/Panel.cs b/xiaofang/Assets/Script/Scheduled_03/Panel.cs index 4bafb1fe..addc19a1 100644 --- a/xiaofang/Assets/Script/Scheduled_03/Panel.cs +++ b/xiaofang/Assets/Script/Scheduled_03/Panel.cs @@ -18,8 +18,8 @@ public class SelectedInfo public string duty;//职责 public string scene;//场景名 public string leader;//是否组长 - public int sceneId;//场景Id - public int dutyId;//职责的Id + public string sceneId;//场景Id + public string dutyId;//职责的Id public string peopleId;//角色Id } @@ -115,18 +115,27 @@ public class Panel : MonoBehaviour PlayerListResponse playerListResponse=await userInfo.GetPlayerList(); foreach(PlayerListData player in playerListResponse.data) { - Debug.Log("Player Name: " + player.Id); - + Debug.Log("UserName: " + player.UserName); + Debug.Log("Id: " + player.Id); + Debug.Log("CompanyId: " + player.CompanyId); + Debug.Log("UserId: " + player.UserId); + Debug.Log("IsAdmin: " + player.IsAdmin); + Debug.Log("Status: " + player.Status); + Debug.Log("Remark: " + player.Remark); + Debug.Log("DepartmentName: " + player.DepartmentName); + Debug.Log("PostName: " + player.PostName); + Debug.Log("NickName: " + player.NickName); + Debug.Log("CreateTime: " + player.CreateTime); + GameObject item = GameObject.Instantiate(peoplePrefab, peopleCountent); PeopleItem peopleItem = item.GetComponent(); peopleItem.nameText.text = player.NickName; - peopleItem.peopleId = player.Id; + peopleItem.peopleId = player.UserId; Button peoplebutton = item.transform.Find("TextBtn").GetComponent