更改为测试版本

This commit is contained in:
lq 2024-12-09 11:37:36 +08:00
parent d10d3775d8
commit 53f0e64108
2 changed files with 9 additions and 2 deletions

View File

@ -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}

View File

@ -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
}
}