From d227ee41b52a07486b9a27f0e65656a37f1baf0c Mon Sep 17 00:00:00 2001 From: lq <3298408835@qq.com> Date: Mon, 23 Dec 2024 17:19:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E4=BC=A0=E8=BE=93=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- xiaofang/Assets/Script/UI/PanelUI/DatePanel.cs | 4 ++-- xiaofang/Assets/Script/UI/PanelUI/SelectScenePanel.cs | 6 ++---- xiaofang/Assets/yhj/scripts/JueseChoicePop.cs | 2 -- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/xiaofang/Assets/Script/UI/PanelUI/DatePanel.cs b/xiaofang/Assets/Script/UI/PanelUI/DatePanel.cs index 6dfd8c75..01b01623 100644 --- a/xiaofang/Assets/Script/UI/PanelUI/DatePanel.cs +++ b/xiaofang/Assets/Script/UI/PanelUI/DatePanel.cs @@ -20,7 +20,7 @@ public class DatePanel : MonoBehaviour public Text submitText; public Text inputText; public Text dataText; - public int placeId; + public string placeId; public Panel panel; public createTemplateInterface createTemplateInterface=new createTemplateInterface(); // Start is called before the first frame update @@ -48,7 +48,7 @@ public class DatePanel : MonoBehaviour //提交按钮 public void OnClickSubmitPanel() { - createTemplateInfo.Instance.auth_CreateTemplate.subjectId = placeId.ToString(); + createTemplateInfo.Instance.auth_CreateTemplate.sceneId = placeId; if(preservationToggle.isOn) { createTemplateInfo.Instance.auth_CreateTemplate.isTemplate = "0"; diff --git a/xiaofang/Assets/Script/UI/PanelUI/SelectScenePanel.cs b/xiaofang/Assets/Script/UI/PanelUI/SelectScenePanel.cs index e26c3e51..1b3f2015 100644 --- a/xiaofang/Assets/Script/UI/PanelUI/SelectScenePanel.cs +++ b/xiaofang/Assets/Script/UI/PanelUI/SelectScenePanel.cs @@ -214,7 +214,7 @@ public class SelectScenePanel : Base { this.idcidentName = item.incidentText.text; this.idcidentId = item.incidentID; - datePanel.placeId = item.incidentID; + datePanel.placeId = item.incidentID.ToString(); string[] difficulty = eventData.Value.Difficulty.Split('|'); string[] roleGroups = eventData.Value.Role.Split('|'); // 分割Role字段,得到多个角色组 @@ -324,9 +324,8 @@ public class SelectScenePanel : Base InstantiateIncidentPrefab(int.Parse(disasterLocation)); OnRandomEventClick(); } - // 设置模板信息 - createTemplateInfo.Instance.auth_CreateTemplate.sceneId = item.eventId.ToString(); + createTemplateInfo.Instance.auth_CreateTemplate.subjectId = item.eventId.ToString(); } }); if (toggle.isOn) @@ -417,7 +416,6 @@ public class SelectScenePanel : Base } } } - //继续按钮,点击后上传数据 public void OnClickContinueBtn() { diff --git a/xiaofang/Assets/yhj/scripts/JueseChoicePop.cs b/xiaofang/Assets/yhj/scripts/JueseChoicePop.cs index ebce2b2a..e0fcea98 100644 --- a/xiaofang/Assets/yhj/scripts/JueseChoicePop.cs +++ b/xiaofang/Assets/yhj/scripts/JueseChoicePop.cs @@ -98,8 +98,6 @@ public class JueseChoicePop : MonoBehaviour classMate.isBeSet = true; classItem.isSet = true; this.classMate = classMate; - //classItem.setClassItem(classMate.classmatename.text); - //s = classMate.classmatename.text; this.classMate.classmatename.text = classMate.classmatename.text + "(" + classItem.classname.text + ")"; } }