|
@@ -36,13 +36,13 @@ namespace GHZLangChao
|
|
|
|
|
|
public static StartXunJian Instance;
|
|
public static StartXunJian Instance;
|
|
|
|
|
|
- private void Awake()
|
|
|
|
|
|
+ void Start()
|
|
{
|
|
{
|
|
Instance = this;
|
|
Instance = this;
|
|
if (mInspectionService == null)
|
|
if (mInspectionService == null)
|
|
mInspectionService = this.GetService<IInspectionService>();
|
|
mInspectionService = this.GetService<IInspectionService>();
|
|
|
|
|
|
- if(mInspectionService.InspectionInfo.id==PlayerPrefs.GetInt("XunJianInspectionInfoID"))
|
|
|
|
|
|
+ if (mInspectionService.InspectionInfo.id == PlayerPrefs.GetInt("XunJianInspectionInfoID"))
|
|
{
|
|
{
|
|
var step = PlayerPrefs.GetInt("ShowXunJianStep");
|
|
var step = PlayerPrefs.GetInt("ShowXunJianStep");
|
|
if (step != 0)
|
|
if (step != 0)
|
|
@@ -50,11 +50,8 @@ namespace GHZLangChao
|
|
ToggleList[step - 1].isOn = true;
|
|
ToggleList[step - 1].isOn = true;
|
|
currentUIItem = ItemList[step - 1];
|
|
currentUIItem = ItemList[step - 1];
|
|
}
|
|
}
|
|
- //Debug.LogError("step:"+ step);
|
|
|
|
}
|
|
}
|
|
- }
|
|
|
|
- void Start()
|
|
|
|
- {
|
|
|
|
|
|
+
|
|
foreach (Button btn in ScreenshotBtnList)
|
|
foreach (Button btn in ScreenshotBtnList)
|
|
{
|
|
{
|
|
btn.onClick.AddListener(ClickScreenshot);
|
|
btn.onClick.AddListener(ClickScreenshot);
|