This commit is contained in:
parent
636973b26b
commit
6b6ecf593e
|
|
@ -397346,6 +397346,7 @@ MonoBehaviour:
|
||||||
cam2: {fileID: 1785647646}
|
cam2: {fileID: 1785647646}
|
||||||
menuUI: {fileID: 1648579876}
|
menuUI: {fileID: 1648579876}
|
||||||
carInfoUI: {fileID: 1944520099}
|
carInfoUI: {fileID: 1944520099}
|
||||||
|
ygq: {fileID: 1559914993}
|
||||||
--- !u!1 &1277129999
|
--- !u!1 &1277129999
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
|
|
||||||
|
|
@ -16,6 +16,12 @@ namespace Script.Manaegr
|
||||||
|
|
||||||
public GameObject menuUI;
|
public GameObject menuUI;
|
||||||
public GameObject carInfoUI;
|
public GameObject carInfoUI;
|
||||||
|
|
||||||
|
|
||||||
|
public AnimationController ygq;
|
||||||
|
|
||||||
|
private bool isYgq = false;
|
||||||
|
|
||||||
public void Init()
|
public void Init()
|
||||||
{
|
{
|
||||||
vehicleController.maxSpeedForward = 11;
|
vehicleController.maxSpeedForward = 11;
|
||||||
|
|
@ -41,7 +47,7 @@ namespace Script.Manaegr
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//切换车内视角
|
||||||
if (Input.GetKeyDown(KeyCode.U))
|
if (Input.GetKeyDown(KeyCode.U))
|
||||||
{
|
{
|
||||||
if (cam1.activeInHierarchy)
|
if (cam1.activeInHierarchy)
|
||||||
|
|
@ -55,6 +61,22 @@ namespace Script.Manaegr
|
||||||
cam2.SetActive(false);
|
cam2.SetActive(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
//雨刮器
|
||||||
|
if (Input.GetKeyDown(KeyCode.I))
|
||||||
|
{
|
||||||
|
if (!isYgq)
|
||||||
|
{
|
||||||
|
isYgq = true;
|
||||||
|
ygq.PlayAnimation("donghua");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
isYgq = false;
|
||||||
|
ygq.StopAnimationLoop();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//菜单
|
||||||
if (Input.GetKeyDown(KeyCode.Escape))
|
if (Input.GetKeyDown(KeyCode.Escape))
|
||||||
{
|
{
|
||||||
if (menuUI.activeInHierarchy)
|
if (menuUI.activeInHierarchy)
|
||||||
|
|
@ -66,6 +88,9 @@ namespace Script.Manaegr
|
||||||
menuUI.SetActive(true);
|
menuUI.SetActive(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue