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