This commit is contained in:
yzx 2024-01-04 09:57:21 +08:00
parent d90a81392f
commit 322ddb50dc
4 changed files with 1024 additions and 185 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
U3D_DrivingSystem/Library/
U3D_DrivingSystem/Temp/UnityLockfile
U3D_DrivingSystem/Logs/
U3D_DrivingSystem/Temp/

File diff suppressed because one or more lines are too long

View File

@ -144281,7 +144281,7 @@ RectTransform:
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: 0, y: 121}
m_SizeDelta: {x: 684.5062, y: 328.9581}
m_SizeDelta: {x: 1668.4, y: 328.9581}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &453954404
MonoBehaviour:
@ -144303,7 +144303,7 @@ MonoBehaviour:
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_text: New Text
m_text:
m_isRightToLeft: 0
m_fontAsset: {fileID: 11400000, guid: 3c43848d99fb62a49b2052d5183af633, type: 2}
m_sharedMaterial: {fileID: -6384026463690451776, guid: 3c43848d99fb62a49b2052d5183af633,
@ -144331,8 +144331,8 @@ MonoBehaviour:
m_faceColor:
serializedVersion: 2
rgba: 4294967295
m_fontSize: 86.4
m_fontSizeBase: 86.4
m_fontSize: 56.3
m_fontSizeBase: 56.3
m_fontWeight: 400
m_enableAutoSizing: 0
m_fontSizeMin: 18
@ -146884,7 +146884,7 @@ GameObject:
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
m_IsActive: 0
--- !u!4 &463649141
Transform:
m_ObjectHideFlags: 0
@ -691993,11 +691993,61 @@ PrefabInstance:
propertyPath: m_Enabled
value: 0
objectReference: {fileID: 0}
- target: {fileID: 980181084903255922, guid: ed1136c7c0a971247baae99b2ab4d336,
type: 3}
propertyPath: m_IsTrigger
value: 1
objectReference: {fileID: 0}
- target: {fileID: 1206854713874889726, guid: ed1136c7c0a971247baae99b2ab4d336,
type: 3}
propertyPath: m_IsTrigger
value: 1
objectReference: {fileID: 0}
- target: {fileID: 1662085984384966345, guid: ed1136c7c0a971247baae99b2ab4d336,
type: 3}
propertyPath: m_Name
value: "\u7981\u6B62\u505C\u8F66"
objectReference: {fileID: 0}
- target: {fileID: 1662085984384966345, guid: ed1136c7c0a971247baae99b2ab4d336,
type: 3}
propertyPath: m_TagString
value: honglvdengchufa
objectReference: {fileID: 0}
- target: {fileID: 2524456371799540492, guid: ed1136c7c0a971247baae99b2ab4d336,
type: 3}
propertyPath: m_Name
value: "\u7981\u6B62\u505C\u8F66"
objectReference: {fileID: 0}
- target: {fileID: 2524456371799540492, guid: ed1136c7c0a971247baae99b2ab4d336,
type: 3}
propertyPath: m_TagString
value: honglvdengchufa
objectReference: {fileID: 0}
- target: {fileID: 2900364512092444737, guid: ed1136c7c0a971247baae99b2ab4d336,
type: 3}
propertyPath: m_Name
value: "\u7981\u6B62\u505C\u8F66"
objectReference: {fileID: 0}
- target: {fileID: 2900364512092444737, guid: ed1136c7c0a971247baae99b2ab4d336,
type: 3}
propertyPath: m_TagString
value: honglvdengchufa
objectReference: {fileID: 0}
- target: {fileID: 3652927567884504588, guid: ed1136c7c0a971247baae99b2ab4d336,
type: 3}
propertyPath: m_Enabled
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4186728241202212498, guid: ed1136c7c0a971247baae99b2ab4d336,
type: 3}
propertyPath: m_Name
value: "\u7981\u6B62\u505C\u8F66"
objectReference: {fileID: 0}
- target: {fileID: 4186728241202212498, guid: ed1136c7c0a971247baae99b2ab4d336,
type: 3}
propertyPath: m_TagString
value: honglvdengchufa
objectReference: {fileID: 0}
- target: {fileID: 4762023537263328882, guid: ed1136c7c0a971247baae99b2ab4d336,
type: 3}
propertyPath: m_Enabled
@ -692013,6 +692063,11 @@ PrefabInstance:
propertyPath: m_Enabled
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5372998102007544568, guid: ed1136c7c0a971247baae99b2ab4d336,
type: 3}
propertyPath: m_IsTrigger
value: 1
objectReference: {fileID: 0}
- target: {fileID: 5473465045006229401, guid: ed1136c7c0a971247baae99b2ab4d336,
type: 3}
propertyPath: m_Enabled
@ -692078,11 +692133,61 @@ PrefabInstance:
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5905501523241570349, guid: ed1136c7c0a971247baae99b2ab4d336,
type: 3}
propertyPath: m_Name
value: "\u7981\u6B62\u505C\u8F66"
objectReference: {fileID: 0}
- target: {fileID: 5905501523241570349, guid: ed1136c7c0a971247baae99b2ab4d336,
type: 3}
propertyPath: m_TagString
value: honglvdengchufa
objectReference: {fileID: 0}
- target: {fileID: 6361357693364105690, guid: ed1136c7c0a971247baae99b2ab4d336,
type: 3}
propertyPath: m_IsTrigger
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7399999655184691216, guid: ed1136c7c0a971247baae99b2ab4d336,
type: 3}
propertyPath: m_Enabled
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7448538251787773224, guid: ed1136c7c0a971247baae99b2ab4d336,
type: 3}
propertyPath: m_IsTrigger
value: 1
objectReference: {fileID: 0}
- target: {fileID: 8506479154709204441, guid: ed1136c7c0a971247baae99b2ab4d336,
type: 3}
propertyPath: m_IsTrigger
value: 1
objectReference: {fileID: 0}
- target: {fileID: 8749242382117567078, guid: ed1136c7c0a971247baae99b2ab4d336,
type: 3}
propertyPath: m_Name
value: "\u7981\u6B62\u505C\u8F66"
objectReference: {fileID: 0}
- target: {fileID: 8749242382117567078, guid: ed1136c7c0a971247baae99b2ab4d336,
type: 3}
propertyPath: m_TagString
value: honglvdengchufa
objectReference: {fileID: 0}
- target: {fileID: 9034157292851835196, guid: ed1136c7c0a971247baae99b2ab4d336,
type: 3}
propertyPath: m_IsTrigger
value: 1
objectReference: {fileID: 0}
- target: {fileID: 9103274811662428509, guid: ed1136c7c0a971247baae99b2ab4d336,
type: 3}
propertyPath: m_Name
value: "\u7981\u6B62\u505C\u8F66"
objectReference: {fileID: 0}
- target: {fileID: 9103274811662428509, guid: ed1136c7c0a971247baae99b2ab4d336,
type: 3}
propertyPath: m_TagString
value: honglvdengchufa
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: ed1136c7c0a971247baae99b2ab4d336, type: 3}
--- !u!1 &6431737264722758854

View File

@ -34,7 +34,7 @@ namespace Script
if (!ui.activeInHierarchy)
{
ui.SetActive(true);
ui.transform.Find("Text").GetComponent<TMP_Text>().text = "超速60";
ui.transform.Find("Text").GetComponent<TMP_Text>().text = "超速在影响车辆的安全性能;影响驾驶人及时、准确地操作;会使驾驶人的思维判断失误;给注意力转移带来困难;对速度的判断能力下降;减弱了驾驶人对空间的认识能力。";
}
}
@ -45,7 +45,18 @@ namespace Script
if (!ui.activeInHierarchy)
{
ui.SetActive(true);
ui.transform.Find("Text").GetComponent<TMP_Text>().text = "超速40";
ui.transform.Find("Text").GetComponent<TMP_Text>().text = "超速在影响车辆的安全性能;影响驾驶人及时、准确地操作;会使驾驶人的思维判断失误;给注意力转移带来困难;对速度的判断能力下降;减弱了驾驶人对空间的认识能力。";
}
}
break;
case "禁止停车":
if (Convert.ToInt32((vehicleController.speed * 3.6f)) <=1)
{
if (!ui.activeInHierarchy)
{
ui.SetActive(true);
ui.transform.Find("Text").GetComponent<TMP_Text>().text = "机动车如果在行驶中随意的停放,那么就会导致交通事故也会增加,机动车突然的停车也会使得其他的驾驶员无法做好准备,因此就会将碰撞事故以及追尾意外的发生增加。";
}
}
@ -67,7 +78,7 @@ namespace Script
if (!ui.activeInHierarchy)
{
ui.SetActive(true);
ui.transform.Find("Text").GetComponent<TMP_Text>().text = "红灯!";
ui.transform.Find("Text").GetComponent<TMP_Text>().text = "车辆闯红灯容易导致车辆相撞或者撞到行人,造成严重的交通事故。更可能导致交通秩序混乱,影响其他车辆和行人的正常通行。";
}
}
else