67 lines
2.5 KiB
C#
67 lines
2.5 KiB
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
using ZXK.Framework;
|
|
using ZXK.UTility;
|
|
/*******************************************************************************
|
|
*Create By CG
|
|
*Function 调试模式控制
|
|
*******************************************************************************/
|
|
namespace ZXK.BYSS
|
|
{
|
|
public class DebugPanel : UIBase
|
|
{
|
|
protected virtual void Start()
|
|
{
|
|
GetWedage("GasBtn_N").GetComponent<Button>().interactable = false;
|
|
AddEventListener("GasBtn_N", UIEventType.OnButtonClick, () =>
|
|
{
|
|
//板运输送特殊弹窗设置
|
|
if (AppManagement.Instance._CurType == EnumCtrl.Type.BYSS)
|
|
{
|
|
GetWedage("GasBtn_N").gameObject.SetActive(false);
|
|
///出现一个弹窗
|
|
PopUpMng.PopCustomSucToast("提示", "参照此列,所有单元程序分别下载并进行调试。", "设备充气", () =>
|
|
{
|
|
AppManagement.Instance.ChangeModel(EnumCtrl.Model.Gas);
|
|
|
|
//设置配音
|
|
PracticeAndExamInSceneCtrl Cur_practiceAndExamInSceneCtrl = UI_Manage.Instance.GetPanel("PracticeAndExamPanel")
|
|
.GetComponent<PracticeAndExamPanel>()._CurTrainExamSceneCtrl;
|
|
if (Cur_practiceAndExamInSceneCtrl.speakManager!=null)
|
|
{
|
|
Cur_practiceAndExamInSceneCtrl.speakManager.Init();
|
|
Cur_practiceAndExamInSceneCtrl.speakManager.ChangeModelAudio("气泵充气");
|
|
Cur_practiceAndExamInSceneCtrl.speakManager.PlayAudioCilp();
|
|
}
|
|
|
|
|
|
});
|
|
}
|
|
else
|
|
{
|
|
AppManagement.Instance.ChangeModel(EnumCtrl.Model.Gas);
|
|
//设置配音
|
|
PracticeAndExamInSceneCtrl Cur_practiceAndExamInSceneCtrl = UI_Manage.Instance.GetPanel("PracticeAndExamPanel")
|
|
.GetComponent<PracticeAndExamPanel>()._CurTrainExamSceneCtrl;
|
|
if (Cur_practiceAndExamInSceneCtrl.speakManager!=null)
|
|
{
|
|
Cur_practiceAndExamInSceneCtrl.speakManager.Init();
|
|
Cur_practiceAndExamInSceneCtrl.speakManager.ChangeModelAudio("气泵充气");
|
|
Cur_practiceAndExamInSceneCtrl.speakManager.PlayAudioCilp();
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
}
|
|
}
|
|
} |