Compare commits
2 Commits
d031503411
...
9876cd7594
| Author | SHA1 | Date |
|---|---|---|
|
|
9876cd7594 | |
|
|
322ddb50dc |
|
|
@ -1,3 +1,4 @@
|
||||||
U3D_DrivingSystem/Library/
|
U3D_DrivingSystem/Library/
|
||||||
U3D_DrivingSystem/Temp/UnityLockfile
|
U3D_DrivingSystem/Temp/UnityLockfile
|
||||||
U3D_DrivingSystem/Logs/
|
U3D_DrivingSystem/Logs/
|
||||||
|
U3D_DrivingSystem/Temp/
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -34,7 +34,7 @@ namespace Script
|
||||||
if (!ui.activeInHierarchy)
|
if (!ui.activeInHierarchy)
|
||||||
{
|
{
|
||||||
ui.SetActive(true);
|
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)
|
if (!ui.activeInHierarchy)
|
||||||
{
|
{
|
||||||
ui.SetActive(true);
|
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)
|
if (!ui.activeInHierarchy)
|
||||||
{
|
{
|
||||||
ui.SetActive(true);
|
ui.SetActive(true);
|
||||||
ui.transform.Find("Text").GetComponent<TMP_Text>().text = "红灯!";
|
ui.transform.Find("Text").GetComponent<TMP_Text>().text = "车辆闯红灯容易导致车辆相撞或者撞到行人,造成严重的交通事故。更可能导致交通秩序混乱,影响其他车辆和行人的正常通行。";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue