Compare commits

..

No commits in common. "9876cd75947f1948345c469f2deb0c850f146f32" and "d031503411f927cf9f2ca5f4749af53b428bfe5b" have entirely different histories.

3 changed files with 180 additions and 914 deletions

1
.gitignore vendored
View File

@ -1,4 +1,3 @@
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

@ -34,7 +34,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 = "超速60";
}
}
@ -45,18 +45,7 @@ namespace Script
if (!ui.activeInHierarchy)
{
ui.SetActive(true);
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 = "机动车如果在行驶中随意的停放,那么就会导致交通事故也会增加,机动车突然的停车也会使得其他的驾驶员无法做好准备,因此就会将碰撞事故以及追尾意外的发生增加。";
ui.transform.Find("Text").GetComponent<TMP_Text>().text = "超速40";
}
}
@ -78,7 +67,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