|
@@ -42,15 +42,9 @@ namespace GHZLangChao
|
|
if (mInspectionService == null)
|
|
if (mInspectionService == null)
|
|
mInspectionService = this.GetService<IInspectionService>();
|
|
mInspectionService = this.GetService<IInspectionService>();
|
|
|
|
|
|
- if (mInspectionService.InspectionInfo.id == PlayerPrefs.GetInt("XunJianInspectionInfoID"))
|
|
|
|
- {
|
|
|
|
- var step = PlayerPrefs.GetInt("ShowXunJianStep");
|
|
|
|
- if (step != 0)
|
|
|
|
- {
|
|
|
|
- ToggleList[step - 1].isOn = true;
|
|
|
|
- currentUIItem = ItemList[step - 1];
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
+ var step = PlayerPrefs.GetInt("ShowXunJianStep");
|
|
|
|
+ ToggleList[step - 1].isOn = true;
|
|
|
|
+ currentUIItem = ItemList[step - 1];
|
|
|
|
|
|
foreach (Button btn in ScreenshotBtnList)
|
|
foreach (Button btn in ScreenshotBtnList)
|
|
{
|
|
{
|
|
@@ -70,10 +64,7 @@ namespace GHZLangChao
|
|
Titile_Btn.onClick.AddListener(ClickTitle);
|
|
Titile_Btn.onClick.AddListener(ClickTitle);
|
|
//CancelBtn.onClick.AddListener(ClickCancel);
|
|
//CancelBtn.onClick.AddListener(ClickCancel);
|
|
|
|
|
|
- if (mInspectionService.InspectionInfo.id == PlayerPrefs.GetInt("XunJianInspectionInfoID"))
|
|
|
|
- {
|
|
|
|
- Init(mInspectionService.InspectionInfo);
|
|
|
|
- }
|
|
|
|
|
|
+ Init(mInspectionService.InspectionInfo);
|
|
}
|
|
}
|
|
private void Update()
|
|
private void Update()
|
|
{
|
|
{
|