This commit is contained in:
parent
ec803964b4
commit
50f0a8193e
|
@ -406,7 +406,7 @@ MonoBehaviour:
|
|||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 144713087}
|
||||
m_Enabled: 0
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 014683e72ff868e4c9c0d3eec7d87a26, type: 3}
|
||||
m_Name:
|
||||
|
@ -762,7 +762,7 @@ Transform:
|
|||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 742343356}
|
||||
m_LocalRotation: {x: 0.30070576, y: 0, z: 0, w: 0.953717}
|
||||
m_LocalPosition: {x: 0, y: 178, z: -366}
|
||||
m_LocalPosition: {x: 323, y: 178, z: -84}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
|
@ -1307,6 +1307,11 @@ PrefabInstance:
|
|||
m_Modification:
|
||||
m_TransformParent: {fileID: 0}
|
||||
m_Modifications:
|
||||
- target: {fileID: -7238547075891962512, guid: 8425122cf585dcc47bbf3eff95ecf176,
|
||||
type: 3}
|
||||
propertyPath: deviceID
|
||||
value: 5555555555
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6865737300552731157, guid: 8425122cf585dcc47bbf3eff95ecf176,
|
||||
type: 3}
|
||||
propertyPath: m_Name
|
||||
|
|
|
@ -22,21 +22,7 @@ namespace AdamSync
|
|||
}
|
||||
}
|
||||
|
||||
private void Update()
|
||||
{
|
||||
if (Input.GetMouseButtonDown(1))
|
||||
{
|
||||
Ray ray = Camera.main.ScreenPointToRay(Input.mousePosition);
|
||||
RaycastHit hitInfo;
|
||||
if (Physics.Raycast(ray, out hitInfo, 1000))
|
||||
{
|
||||
if (hitInfo.collider.tag == "WRJ")
|
||||
{
|
||||
UnmannedAerialVehicleUI.Instance.unmannedAerialVehicleManage = hitInfo.collider.GetComponent<UnmannedAerialVehicleManage>();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private IEnumerator SendMsg()
|
||||
{
|
||||
|
|
|
@ -50,9 +50,22 @@ public class SingleMachineTest : MonoBehaviour
|
|||
// 开始协程
|
||||
StartTimer();
|
||||
}
|
||||
|
||||
|
||||
void FixedUpdate()
|
||||
{
|
||||
if (Input.GetMouseButtonDown(1))
|
||||
{
|
||||
Ray ray = Camera.main.ScreenPointToRay(Input.mousePosition);
|
||||
RaycastHit hitInfo;
|
||||
if (Physics.Raycast(ray, out hitInfo, 1000))
|
||||
{
|
||||
if (hitInfo.collider.tag == "WRJ")
|
||||
{
|
||||
UnmannedAerialVehicleUI.Instance.unmannedAerialVehicleManage = hitInfo.collider.GetComponent<UnmannedAerialVehicleManage>();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 按下空格键来切换定时器的运行状态
|
||||
if (Input.GetKeyDown(KeyCode.Space))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue