Merge branch 'main' of http://shu.sheziwanglo.cn:3000/wulongxiao/_xiaofang
This commit is contained in:
commit
1200fb2dc8
@ -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}
|
||||
|
@ -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.
|
||||
}
|
||||
}
|
||||
|
||||
@ -361,11 +364,12 @@ 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
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user