tijiao
This commit is contained in:
parent
750ba5f1db
commit
f9efbf0e3e
|
@ -103318,8 +103318,9 @@ MonoBehaviour:
|
|||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
uis: {fileID: 34988781}
|
||||
baotai: []
|
||||
carGearControl: {fileID: 0}
|
||||
baotai:
|
||||
- {fileID: 2009850704}
|
||||
carGearControl: {fileID: 1276762320}
|
||||
--- !u!1 &1323442559
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
|
@ -157550,6 +157551,12 @@ Transform:
|
|||
m_Father: {fileID: 1964866829}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!1 &2009850704 stripped
|
||||
GameObject:
|
||||
m_CorrespondingSourceObject: {fileID: 9404289244154715, guid: 4292160a5e1fde347934ac660b2c5d30,
|
||||
type: 3}
|
||||
m_PrefabInstance: {fileID: 2037673174}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!1 &2009855865
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
|
|
|
@ -22,7 +22,7 @@ public class AccidentManager : MonoBehaviour
|
|||
}
|
||||
|
||||
|
||||
public void Tr(Transform other)
|
||||
public void Tr(Transform other, bool b = false)
|
||||
{
|
||||
triggerName = other.name;
|
||||
|
||||
|
@ -48,9 +48,18 @@ public class AccidentManager : MonoBehaviour
|
|||
}
|
||||
}else if (other.name == "礼让行人")
|
||||
{
|
||||
Close();
|
||||
uis.transform.Find("UI").Find("礼让行人").gameObject.SetActive(true);
|
||||
carGearControl.mingdi = true;
|
||||
if (b)
|
||||
{
|
||||
Close();
|
||||
uis.transform.Find("UI").Find("礼让行人").gameObject.SetActive(true);
|
||||
carGearControl.mingdi = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
carGearControl.mingdi = true;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -207,7 +207,7 @@ namespace Script
|
|||
if (carData.HornStatus == 1)
|
||||
{
|
||||
mingdi = false;
|
||||
accidentManager.Tr(ttt);
|
||||
accidentManager.Tr(ttt,true);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue