This commit is contained in:
parent
22f02d2ccb
commit
76d8816085
|
|
@ -0,0 +1,79 @@
|
||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!21 &2100000
|
||||||
|
Material:
|
||||||
|
serializedVersion: 6
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_Name: ganzi1
|
||||||
|
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
|
||||||
|
m_ShaderKeywords:
|
||||||
|
m_LightmapFlags: 4
|
||||||
|
m_EnableInstancingVariants: 0
|
||||||
|
m_DoubleSidedGI: 0
|
||||||
|
m_CustomRenderQueue: -1
|
||||||
|
stringTagMap: {}
|
||||||
|
disabledShaderPasses: []
|
||||||
|
m_SavedProperties:
|
||||||
|
serializedVersion: 3
|
||||||
|
m_TexEnvs:
|
||||||
|
- _BumpMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _DetailAlbedoMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _DetailMask:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _DetailNormalMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _EmissionMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _MainTex:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _MetallicGlossMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _OcclusionMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _ParallaxMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
m_Ints: []
|
||||||
|
m_Floats:
|
||||||
|
- _BumpScale: 1
|
||||||
|
- _Cutoff: 0.5
|
||||||
|
- _DetailNormalMapScale: 1
|
||||||
|
- _DstBlend: 0
|
||||||
|
- _GlossMapScale: 1
|
||||||
|
- _Glossiness: 0
|
||||||
|
- _GlossyReflections: 1
|
||||||
|
- _Metallic: 0
|
||||||
|
- _Mode: 0
|
||||||
|
- _OcclusionStrength: 1
|
||||||
|
- _Parallax: 0.02
|
||||||
|
- _SmoothnessTextureChannel: 0
|
||||||
|
- _SpecularHighlights: 1
|
||||||
|
- _SrcBlend: 1
|
||||||
|
- _UVSec: 0
|
||||||
|
- _ZWrite: 1
|
||||||
|
m_Colors:
|
||||||
|
- _Color: {r: 0.66518503, g: 0.66518503, b: 0.66518503, a: 1}
|
||||||
|
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
||||||
|
m_BuildTextureStacks: []
|
||||||
|
|
@ -0,0 +1,8 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 9a9c23a6da8f6e046abbf16f5d8b6add
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 2100000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
|
|
@ -90050,7 +90050,7 @@ GameObject:
|
||||||
m_Icon: {fileID: 0}
|
m_Icon: {fileID: 0}
|
||||||
m_NavMeshLayer: 0
|
m_NavMeshLayer: 0
|
||||||
m_StaticEditorFlags: 0
|
m_StaticEditorFlags: 0
|
||||||
m_IsActive: 1
|
m_IsActive: 0
|
||||||
--- !u!4 &463649141
|
--- !u!4 &463649141
|
||||||
Transform:
|
Transform:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
|
|
||||||
|
|
@ -63,7 +63,7 @@ namespace Script
|
||||||
vehicleController = GetComponent<VehicleController>();
|
vehicleController = GetComponent<VehicleController>();
|
||||||
vehicleStandardInput = GetComponent<VehicleStandardInput>();
|
vehicleStandardInput = GetComponent<VehicleStandardInput>();
|
||||||
|
|
||||||
// StartModbus();
|
StartModbus();
|
||||||
ModBusQueue();
|
ModBusQueue();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -95,17 +95,17 @@ namespace Script
|
||||||
while (true)
|
while (true)
|
||||||
{
|
{
|
||||||
// Debug.Log(client.modbusQueue.Count);
|
// Debug.Log(client.modbusQueue.Count);
|
||||||
// if (client.modbusQueue.Count > 0)
|
if (client.modbusQueue.Count > 0)
|
||||||
// {
|
|
||||||
// // Debug.Log(client.modbusQueue.Count);
|
|
||||||
//
|
|
||||||
// carData = client.modbusQueue.Dequeue();
|
|
||||||
|
|
||||||
if (ModbusTcpClient.modbusTcpClient.modbusQueue.Count > 0)
|
|
||||||
{
|
{
|
||||||
// Debug.Log(ModbusTcpClient.modbusTcpClient.modbusQueue.Count);
|
// Debug.Log(client.modbusQueue.Count);
|
||||||
|
|
||||||
carData = ModbusTcpClient.modbusTcpClient.modbusQueue.Dequeue();
|
carData = client.modbusQueue.Dequeue();
|
||||||
|
|
||||||
|
// if (ModbusTcpClient.modbusTcpClient.modbusQueue.Count > 0)
|
||||||
|
// {
|
||||||
|
// // Debug.Log(ModbusTcpClient.modbusTcpClient.modbusQueue.Count);
|
||||||
|
//
|
||||||
|
// carData = ModbusTcpClient.modbusTcpClient.modbusQueue.Dequeue();
|
||||||
|
|
||||||
|
|
||||||
//方向盘
|
//方向盘
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue