Commit ffb63a62 authored by 杨泽宇's avatar 杨泽宇

更新

parent 94321db6
......@@ -12,6 +12,8 @@ public class LoginManager : MonoBehaviour
public TMP_InputField lineID;
public TMP_InputField post_url;
private RobotPositionData positionData;
private FaultEventData faultData;
......@@ -167,6 +169,7 @@ public class LoginManager : MonoBehaviour
PlayerPrefs.SetString("lineID2", lineID.text);
}
PlayerPrefs.SetString("faultInterface", faultInterface.text);
PlayerPrefs.SetString("post_url", post_url.text);
PlayerPrefs.Save(); // 确保数据被保存
Debug.Log("Input fields saved to PlayerPrefs.");
......@@ -188,6 +191,7 @@ public class LoginManager : MonoBehaviour
lineID.text = PlayerPrefs.GetString("lineID2");
}
faultInterface.text = PlayerPrefs.GetString("faultInterface");
post_url.text = PlayerPrefs.GetString("post_url");
Debug.Log("Input fields loaded from PlayerPrefs.");
}
......@@ -206,6 +210,7 @@ public class InputFieldData
public string faultInterface;
public string lineID1;
public string lineID2;
public string post_url;
}
// 定义机器人位置数据结构
......
......@@ -23245,6 +23245,7 @@ MonoBehaviour:
productionlineID: {fileID: 899657090}
faultInterface: {fileID: 1049990126}
lineID: {fileID: 898557198}
post_url: {fileID: 0}
position: {x: 0, y: 0, z: 0}
IsFault: 0
Failure:
......@@ -32400,6 +32401,7 @@ MonoBehaviour:
productionlineID: {fileID: 1822593256}
faultInterface: {fileID: 1049990126}
lineID: {fileID: 1559283959}
post_url: {fileID: 0}
position: {x: 0, y: 0, z: 0}
IsFault: 0
Failure:
......@@ -43537,7 +43539,7 @@ MonoBehaviour:
uiOffset: {x: 0, y: 2, z: 0}
lineId1: EB6F0348492C181DE055000000000001
lineId2: AD6E344FAEEB2EA9E053A3001E0A371D
post_url: http://192.168.50.113:8093/maintenance/bigScreen/sensor/getThreeModelSensorData
post_url:
--- !u!1 &820565486
GameObject:
m_ObjectHideFlags: 0
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment