|
@@ -7,6 +7,8 @@ using UnityEngine;
|
|
|
using UnityEngine.UI;
|
|
|
using System.Collections.Generic;
|
|
|
using Google.Protobuf;
|
|
|
+using Newtonsoft.Json;
|
|
|
+using System.IO;
|
|
|
|
|
|
public class ShowXunJian_UIItem : MonoBehaviour, IController
|
|
|
{
|
|
@@ -32,6 +34,7 @@ public class ShowXunJian_UIItem : MonoBehaviour, IController
|
|
|
Warning_Btn.onClick.AddListener(WarningClick);
|
|
|
LabelText_Input.onValueChanged.AddListener(NewStr => mOutliers = NewStr);
|
|
|
}
|
|
|
+
|
|
|
private void OnEnable()
|
|
|
{
|
|
|
StartCoroutine(SetCurrentUIItem());
|
|
@@ -40,9 +43,10 @@ public class ShowXunJian_UIItem : MonoBehaviour, IController
|
|
|
{
|
|
|
yield return new WaitForSeconds(0.01f);
|
|
|
StartXunJian.Instance.currentUIItem = this;
|
|
|
+ PlayerPrefs.SetInt("ShowXunJianStep", mItemID);
|
|
|
}
|
|
|
|
|
|
- private int mItemID; // 检查项目的编号 1-12
|
|
|
+ private int mItemID = 1; // 检查项目的编号 1-12
|
|
|
private bool mNormal = true; //是否正常
|
|
|
private string mOutliers = ""; // 标签
|
|
|
private int mInspectionId; // 巡检编号,巡检开始时返回的id
|
|
@@ -162,4 +166,9 @@ public class ShowXunJian_UIItem : MonoBehaviour, IController
|
|
|
WarningPanel_go.SetActive(true);
|
|
|
mNormal = false;
|
|
|
}
|
|
|
+}
|
|
|
+
|
|
|
+public static class CurrentStep
|
|
|
+{
|
|
|
+ public static int step;
|
|
|
}
|