From 53f0e641080c4b3de72509f7eb4ad6069a6b4595 Mon Sep 17 00:00:00 2001 From: lq <3298408835@qq.com> Date: Mon, 9 Dec 2024 11:37:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E4=B8=BA=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- xiaofang/Assets/Scenes/Schedule_03.unity | 3 +++ xiaofang/Assets/Script/Scheduled_03/Panel.cs | 8 ++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/xiaofang/Assets/Scenes/Schedule_03.unity b/xiaofang/Assets/Scenes/Schedule_03.unity index 0c9e4083..52d8fa45 100644 --- a/xiaofang/Assets/Scenes/Schedule_03.unity +++ b/xiaofang/Assets/Scenes/Schedule_03.unity @@ -2227,6 +2227,9 @@ MonoBehaviour: - {fileID: 1783365054} - {fileID: 1247260776} - {fileID: 452024858} + toggleImage: + - {fileID: 21300000, guid: 9b39ad4a6d4365f4b937bebb942cd186, type: 3} + - {fileID: 21300000, guid: 33cc51e785571694a82fca6e26492330, type: 3} ManagerPanel: {fileID: 617308871} peopleCountent: {fileID: 667280287} peoplePrefab: {fileID: 4204671800070690484, guid: 5e14c4abba3cf1a4099ba76ddf50a689, type: 3} diff --git a/xiaofang/Assets/Script/Scheduled_03/Panel.cs b/xiaofang/Assets/Script/Scheduled_03/Panel.cs index 8c41f131..9ce2c113 100644 --- a/xiaofang/Assets/Script/Scheduled_03/Panel.cs +++ b/xiaofang/Assets/Script/Scheduled_03/Panel.cs @@ -42,7 +42,9 @@ public class Panel : MonoBehaviour [Header("事件系统")] public EventSystem eventSystem; // 事件系统 public ToggleGroup chooseGroup; + [Header("面板选择")] public Toggle[] panelToggle;//面板选择Toggle + public Sprite[] toggleImage;//面板选择图片 [Header("物体")] @@ -94,6 +96,7 @@ public class Panel : MonoBehaviour for (int i = 1; i < panelToggle.Length; i++) { panelToggle[i].interactable = false; + //panelToggle[i].gameObject. } } @@ -358,14 +361,15 @@ public class Panel : MonoBehaviour //==========================================================功能=========================================== - //判断是否能够点击按钮 + //判断是否能够点击按钮 public void PanelToggelSet() { - Debug.Log("isSure<<<<<<<<<<<<<<<<<"+ selectScenePanel.isSure); if(selectScenePanel.isSure) { panelToggle[1].interactable = selectScenePanel.isSure; // 启用第二个Toggle panelToggle[2].interactable = selectScenePanel.isSure; // 启用第三个Toggle + panelToggle[3].interactable = selectScenePanel.isSure; // 启用第二个Toggle + panelToggle[4].interactable = selectScenePanel.isSure; // 启用第三个Toggle } }