This commit is contained in:
parent
8f3f3a8743
commit
7224851a8b
|
@ -816,7 +816,7 @@ RectTransform:
|
|||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 1, y: 1}
|
||||
m_AnchoredPosition: {x: 670.2, y: 278.17908}
|
||||
m_AnchoredPosition: {x: 718.3, y: 278.17908}
|
||||
m_SizeDelta: {x: -1523.4596, y: -848.0557}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &7878471309925781364
|
||||
|
@ -986,8 +986,6 @@ MonoBehaviour:
|
|||
m_Script: {fileID: 11500000, guid: e2557f171ee83f448bd9aa3209125675, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
btn_h51: {fileID: 0}
|
||||
btn_h52: {fileID: 0}
|
||||
mediaPlayer1: {fileID: 7019923733995663088}
|
||||
mediaPlayer2: {fileID: 7019923732621098976}
|
||||
mediaPlayer3: {fileID: 7019923734465098533}
|
||||
|
@ -1034,7 +1032,7 @@ RectTransform:
|
|||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||
m_AnchoredPosition: {x: -676, y: -354.23926}
|
||||
m_AnchoredPosition: {x: -725, y: -354.23926}
|
||||
m_SizeDelta: {x: 392.776, y: 234.48572}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &5848933257833123067
|
||||
|
@ -1135,7 +1133,7 @@ RectTransform:
|
|||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 1, y: 1}
|
||||
m_AnchoredPosition: {x: 668.69995, y: -37.886475}
|
||||
m_AnchoredPosition: {x: 720.2, y: -37.886475}
|
||||
m_SizeDelta: {x: -1526.4248, y: -848.4091}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &2482948682945832243
|
||||
|
@ -1603,7 +1601,7 @@ PrefabInstance:
|
|||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
|
||||
propertyPath: m_AnchorMax.y
|
||||
value: 0
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
|
||||
propertyPath: m_AnchorMin.x
|
||||
|
@ -1611,15 +1609,15 @@ PrefabInstance:
|
|||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
|
||||
propertyPath: m_AnchorMin.y
|
||||
value: 0
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
|
||||
propertyPath: m_SizeDelta.x
|
||||
value: 0
|
||||
value: 192
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
|
||||
propertyPath: m_SizeDelta.y
|
||||
value: 0
|
||||
value: 108
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
|
||||
propertyPath: m_LocalPosition.x
|
||||
|
@ -1651,11 +1649,11 @@ PrefabInstance:
|
|||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
|
||||
propertyPath: m_AnchoredPosition.x
|
||||
value: 0
|
||||
value: 96
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
|
||||
propertyPath: m_AnchoredPosition.y
|
||||
value: 0
|
||||
value: -54
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.x
|
||||
|
@ -1740,7 +1738,7 @@ PrefabInstance:
|
|||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
|
||||
propertyPath: m_AnchorMax.y
|
||||
value: 0
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
|
||||
propertyPath: m_AnchorMin.x
|
||||
|
@ -1748,15 +1746,15 @@ PrefabInstance:
|
|||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
|
||||
propertyPath: m_AnchorMin.y
|
||||
value: 0
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
|
||||
propertyPath: m_SizeDelta.x
|
||||
value: 0
|
||||
value: 192
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
|
||||
propertyPath: m_SizeDelta.y
|
||||
value: 0
|
||||
value: 108
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
|
||||
propertyPath: m_LocalScale.x
|
||||
|
@ -1800,11 +1798,11 @@ PrefabInstance:
|
|||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
|
||||
propertyPath: m_AnchoredPosition.x
|
||||
value: 0
|
||||
value: 296
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
|
||||
propertyPath: m_AnchoredPosition.y
|
||||
value: 0
|
||||
value: -54
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.x
|
||||
|
@ -2031,7 +2029,7 @@ PrefabInstance:
|
|||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
|
||||
propertyPath: m_AnchorMax.y
|
||||
value: 0
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
|
||||
propertyPath: m_AnchorMin.x
|
||||
|
@ -2039,15 +2037,15 @@ PrefabInstance:
|
|||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
|
||||
propertyPath: m_AnchorMin.y
|
||||
value: 0
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
|
||||
propertyPath: m_SizeDelta.x
|
||||
value: 0
|
||||
value: 192
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
|
||||
propertyPath: m_SizeDelta.y
|
||||
value: 0
|
||||
value: 108
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
|
||||
propertyPath: m_LocalScale.x
|
||||
|
@ -2091,11 +2089,11 @@ PrefabInstance:
|
|||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
|
||||
propertyPath: m_AnchoredPosition.x
|
||||
value: 0
|
||||
value: 96
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
|
||||
propertyPath: m_AnchoredPosition.y
|
||||
value: 0
|
||||
value: -170
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.x
|
||||
|
@ -2180,7 +2178,7 @@ PrefabInstance:
|
|||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
|
||||
propertyPath: m_AnchorMax.y
|
||||
value: 0
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
|
||||
propertyPath: m_AnchorMin.x
|
||||
|
@ -2188,15 +2186,15 @@ PrefabInstance:
|
|||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
|
||||
propertyPath: m_AnchorMin.y
|
||||
value: 0
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
|
||||
propertyPath: m_SizeDelta.x
|
||||
value: 0
|
||||
value: 192
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
|
||||
propertyPath: m_SizeDelta.y
|
||||
value: 0
|
||||
value: 108
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
|
||||
propertyPath: m_LocalScale.x
|
||||
|
@ -2240,11 +2238,11 @@ PrefabInstance:
|
|||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
|
||||
propertyPath: m_AnchoredPosition.x
|
||||
value: 0
|
||||
value: 296
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
|
||||
propertyPath: m_AnchoredPosition.y
|
||||
value: 0
|
||||
value: -170
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.x
|
||||
|
|
|
@ -97,7 +97,7 @@ public class ChangeObjMat : MonoBehaviour
|
|||
{
|
||||
Debug.Log("StepSwitchingCoroutine");
|
||||
#region 车辆入场
|
||||
if (Bootstrap.UIMgr != null) Bootstrap.UIMgr.ShowPanel<UI_MiddleTipPanel>(this, E_UI_Layer.System, (p) =>
|
||||
if (Bootstrap.UIMgr != null) Bootstrap.UIMgr.ShowPanel<UI_MiddleTipPanel>(this, E_UI_Layer.Top, (p) =>
|
||||
{
|
||||
p.Init($"您的爱车已入场!", 3);
|
||||
Bootstrap.Instance.eventCenter.EventTrigger(Enum_EventType.AudioPlay, $"车辆入场");
|
||||
|
@ -111,45 +111,45 @@ public class ChangeObjMat : MonoBehaviour
|
|||
m_Obj.SetActive(false);
|
||||
yield return new WaitForSeconds(5);
|
||||
m_CPObj.SetActive(false);
|
||||
if (Bootstrap.UIMgr != null) Bootstrap.UIMgr.ShowPanel<UI_MiddleTipPanel>(this, E_UI_Layer.System, (p) =>
|
||||
if (Bootstrap.UIMgr != null) Bootstrap.UIMgr.ShowPanel<UI_MiddleTipPanel>(this, E_UI_Layer.Top, (p) =>
|
||||
{
|
||||
p.Init($"检测到车牌号为" + GetawayMqttClient.licensePlateData.LicensePlateNumber + "!", 5);
|
||||
});
|
||||
yield return new WaitForSeconds(6);
|
||||
#endregion
|
||||
#region 车身外观检测
|
||||
if (Bootstrap.UIMgr != null) Bootstrap.UIMgr.ShowPanel<UI_MiddleTipPanel>(this, E_UI_Layer.System, (p) =>
|
||||
if (Bootstrap.UIMgr != null) Bootstrap.UIMgr.ShowPanel<UI_MiddleTipPanel>(this, E_UI_Layer.Top, (p) =>
|
||||
{
|
||||
p.Init($"现在进入车身外观检测环节1.深度检测已开始!", 5);
|
||||
});
|
||||
yield return new WaitForSeconds(5);
|
||||
Bootstrap.Instance.eventCenter.EventTrigger(Enum_EventType.AudioPlay, $"车身外观检测");
|
||||
if (Bootstrap.UIMgr != null) Bootstrap.UIMgr.ShowPanel<UI_MiddleTipPanel>(this, E_UI_Layer.System, (p) =>
|
||||
if (Bootstrap.UIMgr != null) Bootstrap.UIMgr.ShowPanel<UI_MiddleTipPanel>(this, E_UI_Layer.Top, (p) =>
|
||||
{
|
||||
p.Init($"2.车外观检测开始!", 3);
|
||||
});
|
||||
yield return new WaitForSeconds(3);
|
||||
if (Bootstrap.UIMgr != null) Bootstrap.UIMgr.ShowPanel<UI_MiddleTipPanel>(this, E_UI_Layer.System, (p) =>
|
||||
if (Bootstrap.UIMgr != null) Bootstrap.UIMgr.ShowPanel<UI_MiddleTipPanel>(this, E_UI_Layer.Top, (p) =>
|
||||
{
|
||||
p.Init($"3.您的爱车正进行车外观检测...", 10);
|
||||
});
|
||||
m_CSSMObj.SetActive(true);
|
||||
yield return new WaitForSeconds(11);
|
||||
m_CSSMObj.SetActive(false);
|
||||
if (Bootstrap.UIMgr != null) Bootstrap.UIMgr.ShowPanel<UI_MiddleTipPanel>(this, E_UI_Layer.System, (p) =>
|
||||
if (Bootstrap.UIMgr != null) Bootstrap.UIMgr.ShowPanel<UI_MiddleTipPanel>(this, E_UI_Layer.Top, (p) =>
|
||||
{
|
||||
p.Init($"车外观检测已完成!", 5);
|
||||
});
|
||||
yield return new WaitForSeconds(6);
|
||||
#endregion
|
||||
#region 红外实时探测
|
||||
if (Bootstrap.UIMgr != null) Bootstrap.UIMgr.ShowPanel<UI_MiddleTipPanel>(this, E_UI_Layer.System, (p) =>
|
||||
if (Bootstrap.UIMgr != null) Bootstrap.UIMgr.ShowPanel<UI_MiddleTipPanel>(this, E_UI_Layer.Top, (p) =>
|
||||
{
|
||||
p.Init($"车辆即将进行红外实时探测:1.红外检测已开始!", 3);
|
||||
});
|
||||
Bootstrap.Instance.eventCenter.EventTrigger(Enum_EventType.AudioPlay, $"红外实时探测");
|
||||
yield return new WaitForSeconds(3);
|
||||
if (Bootstrap.UIMgr != null) Bootstrap.UIMgr.ShowPanel<UI_MiddleTipPanel>(this, E_UI_Layer.System, (p) =>
|
||||
if (Bootstrap.UIMgr != null) Bootstrap.UIMgr.ShowPanel<UI_MiddleTipPanel>(this, E_UI_Layer.Top, (p) =>
|
||||
{
|
||||
p.Init($"2.您的爱车正进行红外检测...", 10);
|
||||
});
|
||||
|
@ -158,20 +158,20 @@ public class ChangeObjMat : MonoBehaviour
|
|||
yield return new WaitForSeconds(11);
|
||||
m_HWSMObj.SetActive(false);////
|
||||
m_HighlightEffect.SetHighlighted(false);
|
||||
if (Bootstrap.UIMgr != null) Bootstrap.UIMgr.ShowPanel<UI_MiddleTipPanel>(this, E_UI_Layer.System, (p) =>
|
||||
if (Bootstrap.UIMgr != null) Bootstrap.UIMgr.ShowPanel<UI_MiddleTipPanel>(this, E_UI_Layer.Top, (p) =>
|
||||
{
|
||||
p.Init($"3红外检测已完成!", 5);
|
||||
});
|
||||
yield return new WaitForSeconds(6);
|
||||
#endregion
|
||||
#region 紫外实时探测
|
||||
if (Bootstrap.UIMgr != null) Bootstrap.UIMgr.ShowPanel<UI_MiddleTipPanel>(this, E_UI_Layer.System, (p) =>
|
||||
if (Bootstrap.UIMgr != null) Bootstrap.UIMgr.ShowPanel<UI_MiddleTipPanel>(this, E_UI_Layer.Top, (p) =>
|
||||
{
|
||||
p.Init($"车辆即将进行紫外实时探测:1.紫外检测已开始!", 3);
|
||||
});
|
||||
Bootstrap.Instance.eventCenter.EventTrigger(Enum_EventType.AudioPlay, $"紫外实时探测");
|
||||
yield return new WaitForSeconds(3);
|
||||
if (Bootstrap.UIMgr != null) Bootstrap.UIMgr.ShowPanel<UI_MiddleTipPanel>(this, E_UI_Layer.System, (p) =>
|
||||
if (Bootstrap.UIMgr != null) Bootstrap.UIMgr.ShowPanel<UI_MiddleTipPanel>(this, E_UI_Layer.Top, (p) =>
|
||||
{
|
||||
p.Init($"2.您的爱车正进行紫外检测...", 10);
|
||||
});
|
||||
|
@ -180,40 +180,40 @@ public class ChangeObjMat : MonoBehaviour
|
|||
yield return new WaitForSeconds(11);
|
||||
m_ZWSMObj.SetActive(false);////
|
||||
m_HighlightEffect.SetHighlighted(false);
|
||||
if (Bootstrap.UIMgr != null) Bootstrap.UIMgr.ShowPanel<UI_MiddleTipPanel>(this, E_UI_Layer.System, (p) =>
|
||||
if (Bootstrap.UIMgr != null) Bootstrap.UIMgr.ShowPanel<UI_MiddleTipPanel>(this, E_UI_Layer.Top, (p) =>
|
||||
{
|
||||
p.Init($"3.紫外检测已完成!", 5);
|
||||
});
|
||||
yield return new WaitForSeconds(6);
|
||||
#endregion
|
||||
#region 声纹检测
|
||||
if (Bootstrap.UIMgr != null) Bootstrap.UIMgr.ShowPanel<UI_MiddleTipPanel>(this, E_UI_Layer.System, (p) =>
|
||||
if (Bootstrap.UIMgr != null) Bootstrap.UIMgr.ShowPanel<UI_MiddleTipPanel>(this, E_UI_Layer.Top, (p) =>
|
||||
{
|
||||
p.Init($"车辆进行声纹检测:1.声纹检测已开始!", 3);
|
||||
});
|
||||
Bootstrap.Instance.eventCenter.EventTrigger(Enum_EventType.AudioPlay, $"声纹检测");
|
||||
yield return new WaitForSeconds(3);
|
||||
if (Bootstrap.UIMgr != null) Bootstrap.UIMgr.ShowPanel<UI_MiddleTipPanel>(this, E_UI_Layer.System, (p) =>
|
||||
if (Bootstrap.UIMgr != null) Bootstrap.UIMgr.ShowPanel<UI_MiddleTipPanel>(this, E_UI_Layer.Top, (p) =>
|
||||
{
|
||||
p.Init($"2.您的爱车正进行声纹检测...", 10);
|
||||
});
|
||||
m_SWJCObj.SetActive(true);////
|
||||
yield return new WaitForSeconds(11);
|
||||
m_SWJCObj.SetActive(false);////
|
||||
if (Bootstrap.UIMgr != null) Bootstrap.UIMgr.ShowPanel<UI_MiddleTipPanel>(this, E_UI_Layer.System, (p) =>
|
||||
if (Bootstrap.UIMgr != null) Bootstrap.UIMgr.ShowPanel<UI_MiddleTipPanel>(this, E_UI_Layer.Top, (p) =>
|
||||
{
|
||||
p.Init($"3.声纹观检测已完成!", 5);
|
||||
});
|
||||
yield return new WaitForSeconds(6);
|
||||
#endregion
|
||||
#region 深度检测报告
|
||||
if (Bootstrap.UIMgr != null) Bootstrap.UIMgr.ShowPanel<UI_MiddleTipPanel>(this, E_UI_Layer.System, (p) =>
|
||||
if (Bootstrap.UIMgr != null) Bootstrap.UIMgr.ShowPanel<UI_MiddleTipPanel>(this, E_UI_Layer.Top, (p) =>
|
||||
{
|
||||
p.Init($"均衡一体机检测准备:1.电池检测已开始!", 5);
|
||||
});
|
||||
Bootstrap.Instance.eventCenter.EventTrigger(Enum_EventType.AudioPlay, $"电池检测");
|
||||
yield return new WaitForSeconds(5);
|
||||
if (Bootstrap.UIMgr != null) Bootstrap.UIMgr.ShowPanel<UI_MiddleTipPanel>(this, E_UI_Layer.System, (p) =>
|
||||
if (Bootstrap.UIMgr != null) Bootstrap.UIMgr.ShowPanel<UI_MiddleTipPanel>(this, E_UI_Layer.Top, (p) =>
|
||||
{
|
||||
p.Init($"2.您的爱车正进行电池检测...", 10);
|
||||
});
|
||||
|
@ -222,24 +222,24 @@ public class ChangeObjMat : MonoBehaviour
|
|||
yield return new WaitForSeconds(11);
|
||||
m_DCJCObj.SetActive(false);////
|
||||
m_HighlightEffect.SetHighlighted(false);
|
||||
if (Bootstrap.UIMgr != null) Bootstrap.UIMgr.ShowPanel<UI_MiddleTipPanel>(this, E_UI_Layer.System, (p) =>
|
||||
if (Bootstrap.UIMgr != null) Bootstrap.UIMgr.ShowPanel<UI_MiddleTipPanel>(this, E_UI_Layer.Top, (p) =>
|
||||
{
|
||||
p.Init($"3.电池检测已完成!", 3);
|
||||
});
|
||||
yield return new WaitForSeconds(4);
|
||||
if (Bootstrap.UIMgr != null) Bootstrap.UIMgr.ShowPanel<UI_MiddleTipPanel>(this, E_UI_Layer.System, (p) =>
|
||||
if (Bootstrap.UIMgr != null) Bootstrap.UIMgr.ShowPanel<UI_MiddleTipPanel>(this, E_UI_Layer.Top, (p) =>
|
||||
{
|
||||
p.Init($"4.深度检测已完成!", 5);
|
||||
});
|
||||
yield return new WaitForSeconds(6);
|
||||
if (Bootstrap.UIMgr != null) Bootstrap.UIMgr.ShowPanel<UI_MiddleTipPanel>(this, E_UI_Layer.System, (p) =>
|
||||
if (Bootstrap.UIMgr != null) Bootstrap.UIMgr.ShowPanel<UI_MiddleTipPanel>(this, E_UI_Layer.Top, (p) =>
|
||||
{
|
||||
p.Init($"5.深度检测报告已生成,请扫描屏幕右下角的二维码获取!", 30);
|
||||
});
|
||||
yield return new WaitForSeconds(31);
|
||||
#endregion
|
||||
#region 预约均衡
|
||||
if (Bootstrap.UIMgr != null) Bootstrap.UIMgr.ShowPanel<UI_MiddleTipPanel>(this, E_UI_Layer.System, (p) =>
|
||||
if (Bootstrap.UIMgr != null) Bootstrap.UIMgr.ShowPanel<UI_MiddleTipPanel>(this, E_UI_Layer.Top, (p) =>
|
||||
{
|
||||
p.Init($"您已预约电池均衡操作,请稍等...", 30);
|
||||
});
|
||||
|
@ -251,7 +251,7 @@ public class ChangeObjMat : MonoBehaviour
|
|||
m_HighlightEffect.SetHighlighted(false);
|
||||
#endregion
|
||||
#region 均衡报告
|
||||
if (Bootstrap.UIMgr != null) Bootstrap.UIMgr.ShowPanel<UI_MiddleTipPanel>(this, E_UI_Layer.System, (p) =>
|
||||
if (Bootstrap.UIMgr != null) Bootstrap.UIMgr.ShowPanel<UI_MiddleTipPanel>(this, E_UI_Layer.Top, (p) =>
|
||||
{
|
||||
p.Init($"电池均衡操作已完成,请扫描屏幕右下角的二维码获取均衡报告!感谢您的支持和配合,祝您一路平安!", 0);
|
||||
});
|
||||
|
|
|
@ -29,7 +29,7 @@ public class Bootstrap : SingletonMono<Bootstrap>
|
|||
Debug.Log("加载场景成功");
|
||||
eventCenter.EventTrigger(Enum_EventType.UpdateProgress, 0.9f);
|
||||
});
|
||||
UIMgr.ShowPanel<UI_BGPanel>(this, E_UI_Layer.Bot, (p) =>
|
||||
UIMgr.ShowPanel<UI_BGPanel>(this, E_UI_Layer.System, (p) =>
|
||||
{
|
||||
AudioManager.tipsSource = Camera.main.AddComponent<AudioSource>();
|
||||
});
|
||||
|
|
|
@ -33,7 +33,7 @@ public class WebViewController : MonoBehaviour
|
|||
}
|
||||
else
|
||||
{
|
||||
Debug.LogError("WebUrl.json 文件不存在!");
|
||||
Debug.LogError("WebUrl.json not found!");
|
||||
}
|
||||
}
|
||||
private void Start()
|
||||
|
|
|
@ -1,16 +1,20 @@
|
|||
using Hanatric.Unity.Video.FFmpegPlayer;
|
||||
using Newtonsoft.Json;
|
||||
using System.IO;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
using Vuplex.WebView;
|
||||
public class UI_BGPanel : BasePanel
|
||||
{
|
||||
public Button btn_h51, btn_h52;
|
||||
[HideInInspector]
|
||||
public static Button btn_h51, btn_h52;
|
||||
public FFmpegPlayerBasicRawImage mediaPlayer1;
|
||||
public FFmpegPlayerBasicRawImage mediaPlayer2;
|
||||
public FFmpegPlayerBasicRawImage mediaPlayer3;
|
||||
public FFmpegPlayerBasicRawImage mediaPlayer4;
|
||||
public FFmpegPlayerBasicRawImage mediaPlayerHW;
|
||||
public FFmpegPlayerBasicRawImage mediaPlayerZW;
|
||||
private LiveUrlData liveUrlData;
|
||||
protected override void Awake()
|
||||
{
|
||||
base.Awake();
|
||||
|
@ -29,50 +33,67 @@ public class UI_BGPanel : BasePanel
|
|||
WebViewController.Instance.canvash52Prefab.gameObject.SetActive(true);
|
||||
}
|
||||
);
|
||||
|
||||
var filePath = Path.Combine(Application.streamingAssetsPath, "StateTrendConfig/LiveUrl.json");
|
||||
if (File.Exists(filePath))
|
||||
{
|
||||
var jsonStr = File.ReadAllText(filePath);
|
||||
var config = JsonConvert.DeserializeObject<LiveUrlData>(jsonStr);
|
||||
liveUrlData = config;
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.Log("LiveUrl.json not found");
|
||||
}
|
||||
}
|
||||
void Start()
|
||||
{
|
||||
OnLoadVideo();
|
||||
if (liveUrlData!=null) OnLoadVideo();
|
||||
}
|
||||
private void OnLoadVideo()
|
||||
{
|
||||
string liveUrl = "rtsp://admin:pyss2017@221.214.127.18:8200/cam/realmonitor?channel=19&subtype=0&proto=Private3";
|
||||
mediaPlayer1.UseTcp = true;
|
||||
mediaPlayer1.OpenPlayUrl(liveUrl);
|
||||
mediaPlayer1.OpenPlayUrl(liveUrlData.LiveUrl1);
|
||||
|
||||
mediaPlayer2.UseTcp = true;
|
||||
mediaPlayer2.OpenPlayUrl(liveUrl);
|
||||
mediaPlayer2.OpenPlayUrl(liveUrlData.LiveUrl2);
|
||||
|
||||
mediaPlayer3.UseTcp = true;
|
||||
mediaPlayer3.OpenPlayUrl(liveUrl);
|
||||
mediaPlayer3.OpenPlayUrl(liveUrlData.LiveUrl3);
|
||||
|
||||
mediaPlayer4.UseTcp = true;
|
||||
mediaPlayer4.OpenPlayUrl(liveUrl);
|
||||
mediaPlayer4.OpenPlayUrl(liveUrlData.LiveUrl4);
|
||||
|
||||
mediaPlayerHW.UseTcp = true;
|
||||
mediaPlayerHW.OpenPlayUrl(liveUrl);
|
||||
mediaPlayerHW.OpenPlayUrl(liveUrlData.LiveUrlHW);
|
||||
|
||||
mediaPlayerZW.UseTcp = true;
|
||||
mediaPlayerZW.OpenPlayUrl(liveUrl);
|
||||
mediaPlayerZW.OpenPlayUrl(liveUrlData.LiveUrlZW);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// rtspµØÖ·
|
||||
/// </summary>
|
||||
public class LiveUrlData
|
||||
{
|
||||
/// <summary>
|
||||
/// ³µÅƺÅ
|
||||
/// </summary>
|
||||
[JsonProperty("licensePlateNumber")]
|
||||
public string LicensePlateNumber { get; set; }
|
||||
/// <summary>
|
||||
/// ³µÁ¾Æ·ÅÆ
|
||||
/// </summary>
|
||||
[JsonProperty("vehicleBrand")]
|
||||
public string VehicleBrand { get; set; }
|
||||
/// <summary>
|
||||
/// ³µÁ¾ÐͺÅ
|
||||
/// </summary>
|
||||
[JsonProperty("vehicleModel")]
|
||||
public string VehicleModel { get; set; }
|
||||
|
||||
[JsonProperty("liveUrl1")]
|
||||
public string LiveUrl1 { get; set; }
|
||||
|
||||
[JsonProperty("liveUrl2")]
|
||||
public string LiveUrl2 { get; set; }
|
||||
|
||||
[JsonProperty("liveUrl3")]
|
||||
public string LiveUrl3 { get; set; }
|
||||
|
||||
[JsonProperty("liveUrl4")]
|
||||
public string LiveUrl4 { get; set; }
|
||||
|
||||
[JsonProperty("liveUrHW")]
|
||||
public string LiveUrlHW { get; set; }
|
||||
|
||||
[JsonProperty("liveUrZW")]
|
||||
public string LiveUrlZW { get; set; }
|
||||
}
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"liveUrl1": "rtsp://admin:pyss2017@221.214.127.18:8200/cam/realmonitor?channel=19&subtype=0&proto=Private3",
|
||||
"liveUrl2": "rtsp://admin:pyss2017@221.214.127.18:8200/cam/realmonitor?channel=19&subtype=0&proto=Private3",
|
||||
"liveUrl3": "rtsp://admin:pyss2017@221.214.127.18:8200/cam/realmonitor?channel=19&subtype=0&proto=Private3",
|
||||
"liveUrl4": "rtsp://admin:pyss2017@221.214.127.18:8200/cam/realmonitor?channel=19&subtype=0&proto=Private3",
|
||||
"liveUrHW": "rtsp://admin:Hik12345+@192.168.1.64:554/Streaming/Channels/201",
|
||||
"liveUrZW": "rtsp://admin:Hik12345+@192.168.1.64:554/Streaming/Channels/201"
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
fileFormatVersion: 2
|
||||
guid: fbf0de6507145c84eb1b1b51c700d370
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Loading…
Reference in New Issue