Compare commits
4 Commits
58df5fb8e6
...
432f88c8a5
Author | SHA1 | Date |
---|---|---|
|
432f88c8a5 | |
|
737acb5a7b | |
|
5d476f941d | |
|
27597ba5c4 |
File diff suppressed because it is too large
Load Diff
|
@ -1,3 +1,4 @@
|
||||||
|
using Components;
|
||||||
using JData;
|
using JData;
|
||||||
using System.Collections;
|
using System.Collections;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
@ -20,6 +21,17 @@ namespace Adam
|
||||||
public InputField[] userNames;
|
public InputField[] userNames;
|
||||||
public InputField[] workSpace;
|
public InputField[] workSpace;
|
||||||
public GameObject jobCardPanel;
|
public GameObject jobCardPanel;
|
||||||
|
public GameObject jobChoiceQuestionPanel;
|
||||||
|
public OptionItem optionItemPrefab;
|
||||||
|
public Transform optionItemContent;
|
||||||
|
/// <summary>
|
||||||
|
/// 风险点分析
|
||||||
|
/// </summary>
|
||||||
|
public Button RiskPointAnalysisBtn;
|
||||||
|
/// <summary>
|
||||||
|
/// 安全措施
|
||||||
|
/// </summary>
|
||||||
|
public Button SafetyMeasuresBtn;
|
||||||
// Use this for initialization
|
// Use this for initialization
|
||||||
private void Start()
|
private void Start()
|
||||||
{
|
{
|
||||||
|
@ -31,7 +43,11 @@ namespace Adam
|
||||||
GetValue(numb, index);
|
GetValue(numb, index);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
jobCardPanel.SetActive(false);
|
jobCardPanel.SetActive(false);
|
||||||
|
jobChoiceQuestionPanel.SetActive(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
public async void GetValue(string numb, int _index)
|
public async void GetValue(string numb, int _index)
|
||||||
|
@ -41,7 +57,27 @@ namespace Adam
|
||||||
JobCardData jData = await AsyncWebReq.Get<JobCardData>(_url);
|
JobCardData jData = await AsyncWebReq.Get<JobCardData>(_url);
|
||||||
userNames[_index].text = jData.data.name;
|
userNames[_index].text = jData.data.name;
|
||||||
workSpace[_index].text = jData.data.adress;
|
workSpace[_index].text = jData.data.adress;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 0- 风险点,1-安全措施
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="index"></param>
|
||||||
|
public void OnClick(int index)
|
||||||
|
{
|
||||||
|
jobChoiceQuestionPanel.SetActive(true);
|
||||||
|
if (index == 0)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
else if (index == 1)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,7 +2,10 @@ fileFormatVersion: 2
|
||||||
guid: 13e6757fcb98e1e4bbc94e07f67e0dbb
|
guid: 13e6757fcb98e1e4bbc94e07f67e0dbb
|
||||||
ModelImporter:
|
ModelImporter:
|
||||||
serializedVersion: 21300
|
serializedVersion: 21300
|
||||||
internalIDToNameTable: []
|
internalIDToNameTable:
|
||||||
|
- first:
|
||||||
|
74: 1827226128182048838
|
||||||
|
second: Take 001
|
||||||
externalObjects:
|
externalObjects:
|
||||||
- first:
|
- first:
|
||||||
type: UnityEngine:Material
|
type: UnityEngine:Material
|
||||||
|
|
|
@ -2,7 +2,10 @@ fileFormatVersion: 2
|
||||||
guid: 6fbd9caa46e05824fb3eba389c7d1b27
|
guid: 6fbd9caa46e05824fb3eba389c7d1b27
|
||||||
ModelImporter:
|
ModelImporter:
|
||||||
serializedVersion: 21300
|
serializedVersion: 21300
|
||||||
internalIDToNameTable: []
|
internalIDToNameTable:
|
||||||
|
- first:
|
||||||
|
74: 1827226128182048838
|
||||||
|
second: Take 001
|
||||||
externalObjects:
|
externalObjects:
|
||||||
- first:
|
- first:
|
||||||
type: UnityEngine:Material
|
type: UnityEngine:Material
|
||||||
|
|
|
@ -5017,7 +5017,7 @@ PrefabInstance:
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 919132149155446097, guid: 13e6757fcb98e1e4bbc94e07f67e0dbb, type: 3}
|
- target: {fileID: 919132149155446097, guid: 13e6757fcb98e1e4bbc94e07f67e0dbb, type: 3}
|
||||||
propertyPath: m_IsActive
|
propertyPath: m_IsActive
|
||||||
value: 1
|
value: 0
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 1934297243589407246, guid: 13e6757fcb98e1e4bbc94e07f67e0dbb, type: 3}
|
- target: {fileID: 1934297243589407246, guid: 13e6757fcb98e1e4bbc94e07f67e0dbb, type: 3}
|
||||||
propertyPath: m_LocalPosition.y
|
propertyPath: m_LocalPosition.y
|
||||||
|
|
|
@ -8776,7 +8776,7 @@ PrefabInstance:
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 919132149155446097, guid: 6fbd9caa46e05824fb3eba389c7d1b27, type: 3}
|
- target: {fileID: 919132149155446097, guid: 6fbd9caa46e05824fb3eba389c7d1b27, type: 3}
|
||||||
propertyPath: m_IsActive
|
propertyPath: m_IsActive
|
||||||
value: 1
|
value: 0
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
m_RemovedComponents: []
|
m_RemovedComponents: []
|
||||||
m_SourcePrefab: {fileID: 100100000, guid: 6fbd9caa46e05824fb3eba389c7d1b27, type: 3}
|
m_SourcePrefab: {fileID: 100100000, guid: 6fbd9caa46e05824fb3eba389c7d1b27, type: 3}
|
||||||
|
|
|
@ -35,12 +35,12 @@
|
||||||
"source": "builtin",
|
"source": "builtin",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"com.unity.ide.visualstudio": "2.0.16",
|
"com.unity.ide.visualstudio": "2.0.16",
|
||||||
"com.unity.ide.rider": "3.0.16",
|
"com.unity.ide.rider": "3.0.15",
|
||||||
"com.unity.ide.vscode": "1.2.5",
|
"com.unity.ide.vscode": "1.2.5",
|
||||||
"com.unity.editorcoroutines": "1.0.0",
|
"com.unity.editorcoroutines": "1.0.0",
|
||||||
"com.unity.performance.profile-analyzer": "1.1.1",
|
"com.unity.performance.profile-analyzer": "1.1.1",
|
||||||
"com.unity.test-framework": "1.1.31",
|
"com.unity.test-framework": "1.1.31",
|
||||||
"com.unity.testtools.codecoverage": "1.2.2"
|
"com.unity.testtools.codecoverage": "1.0.1"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"com.unity.ide.rider": {
|
"com.unity.ide.rider": {
|
||||||
|
@ -92,7 +92,7 @@
|
||||||
"url": "https://packages.unity.cn"
|
"url": "https://packages.unity.cn"
|
||||||
},
|
},
|
||||||
"com.unity.services.core": {
|
"com.unity.services.core": {
|
||||||
"version": "1.6.0",
|
"version": "1.4.2",
|
||||||
"depth": 1,
|
"depth": 1,
|
||||||
"source": "registry",
|
"source": "registry",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
@ -121,7 +121,7 @@
|
||||||
"url": "https://packages.unity.cn"
|
"url": "https://packages.unity.cn"
|
||||||
},
|
},
|
||||||
"com.unity.testtools.codecoverage": {
|
"com.unity.testtools.codecoverage": {
|
||||||
"version": "1.2.2",
|
"version": "1.0.1",
|
||||||
"depth": 1,
|
"depth": 1,
|
||||||
"source": "registry",
|
"source": "registry",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
Loading…
Reference in New Issue