This commit is contained in:
yzx 2023-12-19 18:16:51 +08:00
parent c4e4e6b134
commit 660dd5e3ba
43 changed files with 11679 additions and 7208 deletions

File diff suppressed because it is too large Load Diff

View File

@ -25,7 +25,7 @@
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>Temp\bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE;UNITY_2019_4_0;UNITY_2019_4;UNITY_2019;UNITY_5_3_OR_NEWER;UNITY_5_4_OR_NEWER;UNITY_5_5_OR_NEWER;UNITY_5_6_OR_NEWER;UNITY_2017_1_OR_NEWER;UNITY_2017_2_OR_NEWER;UNITY_2017_3_OR_NEWER;UNITY_2017_4_OR_NEWER;UNITY_2018_1_OR_NEWER;UNITY_2018_2_OR_NEWER;UNITY_2018_3_OR_NEWER;UNITY_2018_4_OR_NEWER;UNITY_2019_1_OR_NEWER;UNITY_2019_2_OR_NEWER;UNITY_2019_3_OR_NEWER;UNITY_2019_4_OR_NEWER;PLATFORM_ARCH_64;UNITY_64;UNITY_INCLUDE_TESTS;ENABLE_AR;ENABLE_AUDIO;ENABLE_CACHING;ENABLE_CLOTH;ENABLE_EVENT_QUEUE;ENABLE_MICROPHONE;ENABLE_MULTIPLE_DISPLAYS;ENABLE_PHYSICS;ENABLE_TEXTURE_STREAMING;ENABLE_UNET;ENABLE_LZMA;ENABLE_UNITYEVENTS;ENABLE_VR;ENABLE_WEBCAM;ENABLE_UNITYWEBREQUEST;ENABLE_WWW;ENABLE_CLOUD_SERVICES;ENABLE_CLOUD_SERVICES_COLLAB;ENABLE_CLOUD_SERVICES_COLLAB_SOFTLOCKS;ENABLE_CLOUD_SERVICES_ADS;ENABLE_CLOUD_SERVICES_USE_WEBREQUEST;ENABLE_CLOUD_SERVICES_CRASH_REPORTING;ENABLE_CLOUD_SERVICES_PURCHASING;ENABLE_CLOUD_SERVICES_ANALYTICS;ENABLE_CLOUD_SERVICES_UNET;ENABLE_CLOUD_SERVICES_BUILD;ENABLE_CLOUD_LICENSE;ENABLE_EDITOR_HUB_LICENSE;ENABLE_WEBSOCKET_CLIENT;ENABLE_DIRECTOR_AUDIO;ENABLE_DIRECTOR_TEXTURE;ENABLE_MANAGED_JOBS;ENABLE_MANAGED_TRANSFORM_JOBS;ENABLE_MANAGED_ANIMATION_JOBS;ENABLE_MANAGED_AUDIO_JOBS;INCLUDE_DYNAMIC_GI;ENABLE_MONO_BDWGC;ENABLE_SCRIPTING_GC_WBARRIERS;PLATFORM_SUPPORTS_MONO;RENDER_SOFTWARE_CURSOR;ENABLE_VIDEO;PLATFORM_STANDALONE;PLATFORM_STANDALONE_WIN;UNITY_STANDALONE_WIN;UNITY_STANDALONE;ENABLE_RUNTIME_GI;ENABLE_MOVIES;ENABLE_NETWORK;ENABLE_CRUNCH_TEXTURE_COMPRESSION;ENABLE_OUT_OF_PROCESS_CRASH_HANDLER;ENABLE_CLUSTER_SYNC;ENABLE_CLUSTERINPUT;ENABLE_WEBSOCKET_HOST;ENABLE_MONO;NET_STANDARD_2_0;ENABLE_PROFILER;UNITY_ASSERTIONS;UNITY_EDITOR;UNITY_EDITOR_64;UNITY_EDITOR_WIN;ENABLE_UNITY_COLLECTIONS_CHECKS;ENABLE_BURST_AOT;UNITY_TEAM_LICENSE;ENABLE_CUSTOM_RENDER_TEXTURE;ENABLE_DIRECTOR;ENABLE_LOCALIZATION;ENABLE_SPRITES;ENABLE_TERRAIN;ENABLE_TILEMAP;ENABLE_TIMELINE;ENABLE_LEGACY_INPUT_MANAGER;CROSS_PLATFORM_INPUT;UNITY_POST_PROCESSING_STACK_V2;NET_4_6;CSHARP_7_OR_LATER;CSHARP_7_3_OR_NEWER</DefineConstants>
<DefineConstants>DEBUG;TRACE;UNITY_2019_4_0;UNITY_2019_4;UNITY_2019;UNITY_5_3_OR_NEWER;UNITY_5_4_OR_NEWER;UNITY_5_5_OR_NEWER;UNITY_5_6_OR_NEWER;UNITY_2017_1_OR_NEWER;UNITY_2017_2_OR_NEWER;UNITY_2017_3_OR_NEWER;UNITY_2017_4_OR_NEWER;UNITY_2018_1_OR_NEWER;UNITY_2018_2_OR_NEWER;UNITY_2018_3_OR_NEWER;UNITY_2018_4_OR_NEWER;UNITY_2019_1_OR_NEWER;UNITY_2019_2_OR_NEWER;UNITY_2019_3_OR_NEWER;UNITY_2019_4_OR_NEWER;PLATFORM_ARCH_64;UNITY_64;UNITY_INCLUDE_TESTS;ENABLE_AR;ENABLE_AUDIO;ENABLE_CACHING;ENABLE_CLOTH;ENABLE_EVENT_QUEUE;ENABLE_MICROPHONE;ENABLE_MULTIPLE_DISPLAYS;ENABLE_PHYSICS;ENABLE_TEXTURE_STREAMING;ENABLE_UNET;ENABLE_LZMA;ENABLE_UNITYEVENTS;ENABLE_VR;ENABLE_WEBCAM;ENABLE_UNITYWEBREQUEST;ENABLE_WWW;ENABLE_CLOUD_SERVICES;ENABLE_CLOUD_SERVICES_COLLAB;ENABLE_CLOUD_SERVICES_COLLAB_SOFTLOCKS;ENABLE_CLOUD_SERVICES_ADS;ENABLE_CLOUD_SERVICES_USE_WEBREQUEST;ENABLE_CLOUD_SERVICES_CRASH_REPORTING;ENABLE_CLOUD_SERVICES_PURCHASING;ENABLE_CLOUD_SERVICES_ANALYTICS;ENABLE_CLOUD_SERVICES_UNET;ENABLE_CLOUD_SERVICES_BUILD;ENABLE_CLOUD_LICENSE;ENABLE_EDITOR_HUB_LICENSE;ENABLE_WEBSOCKET_CLIENT;ENABLE_DIRECTOR_AUDIO;ENABLE_DIRECTOR_TEXTURE;ENABLE_MANAGED_JOBS;ENABLE_MANAGED_TRANSFORM_JOBS;ENABLE_MANAGED_ANIMATION_JOBS;ENABLE_MANAGED_AUDIO_JOBS;INCLUDE_DYNAMIC_GI;ENABLE_MONO_BDWGC;ENABLE_SCRIPTING_GC_WBARRIERS;PLATFORM_SUPPORTS_MONO;RENDER_SOFTWARE_CURSOR;ENABLE_VIDEO;PLATFORM_STANDALONE;PLATFORM_STANDALONE_WIN;UNITY_STANDALONE_WIN;UNITY_STANDALONE;ENABLE_RUNTIME_GI;ENABLE_MOVIES;ENABLE_NETWORK;ENABLE_CRUNCH_TEXTURE_COMPRESSION;ENABLE_OUT_OF_PROCESS_CRASH_HANDLER;ENABLE_CLUSTER_SYNC;ENABLE_CLUSTERINPUT;ENABLE_WEBSOCKET_HOST;ENABLE_MONO;NET_STANDARD_2_0;ENABLE_PROFILER;UNITY_ASSERTIONS;UNITY_EDITOR;UNITY_EDITOR_64;UNITY_EDITOR_WIN;ENABLE_UNITY_COLLECTIONS_CHECKS;ENABLE_BURST_AOT;UNITY_TEAM_LICENSE;ENABLE_CUSTOM_RENDER_TEXTURE;ENABLE_DIRECTOR;ENABLE_LOCALIZATION;ENABLE_SPRITES;ENABLE_TERRAIN;ENABLE_TILEMAP;ENABLE_TIMELINE;ENABLE_LEGACY_INPUT_MANAGER;CROSS_PLATFORM_INPUT;UNITY_POST_PROCESSING_STACK_V2;AMPLIFY_SHADER_EDITOR;NET_4_6;CSHARP_7_OR_LATER;CSHARP_7_3_OR_NEWER</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<NoWarn>0169</NoWarn>
@ -753,6 +753,10 @@
<Project>{EE237F7D-34D2-D9AE-0263-133C3F95283C}</Project>
<Name>Boxophobic.Utils.Editor</Name>
</ProjectReference>
<ProjectReference Include="AmplifyShaderEditor.csproj">
<Project>{19680DCC-6E6D-4577-34A0-666CCEA436DB}</Project>
<Name>AmplifyShaderEditor</Name>
</ProjectReference>
<ProjectReference Include="Boxophobic.AtmosphericHeightFog.Runtime.csproj">
<Project>{4C96BD12-F6EB-0840-DC94-863A1F7D1D40}</Project>
<Name>Boxophobic.AtmosphericHeightFog.Runtime</Name>

View File

@ -25,7 +25,7 @@
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>Temp\bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE;UNITY_2019_4_0;UNITY_2019_4;UNITY_2019;UNITY_5_3_OR_NEWER;UNITY_5_4_OR_NEWER;UNITY_5_5_OR_NEWER;UNITY_5_6_OR_NEWER;UNITY_2017_1_OR_NEWER;UNITY_2017_2_OR_NEWER;UNITY_2017_3_OR_NEWER;UNITY_2017_4_OR_NEWER;UNITY_2018_1_OR_NEWER;UNITY_2018_2_OR_NEWER;UNITY_2018_3_OR_NEWER;UNITY_2018_4_OR_NEWER;UNITY_2019_1_OR_NEWER;UNITY_2019_2_OR_NEWER;UNITY_2019_3_OR_NEWER;UNITY_2019_4_OR_NEWER;PLATFORM_ARCH_64;UNITY_64;UNITY_INCLUDE_TESTS;ENABLE_AR;ENABLE_AUDIO;ENABLE_CACHING;ENABLE_CLOTH;ENABLE_EVENT_QUEUE;ENABLE_MICROPHONE;ENABLE_MULTIPLE_DISPLAYS;ENABLE_PHYSICS;ENABLE_TEXTURE_STREAMING;ENABLE_UNET;ENABLE_LZMA;ENABLE_UNITYEVENTS;ENABLE_VR;ENABLE_WEBCAM;ENABLE_UNITYWEBREQUEST;ENABLE_WWW;ENABLE_CLOUD_SERVICES;ENABLE_CLOUD_SERVICES_COLLAB;ENABLE_CLOUD_SERVICES_COLLAB_SOFTLOCKS;ENABLE_CLOUD_SERVICES_ADS;ENABLE_CLOUD_SERVICES_USE_WEBREQUEST;ENABLE_CLOUD_SERVICES_CRASH_REPORTING;ENABLE_CLOUD_SERVICES_PURCHASING;ENABLE_CLOUD_SERVICES_ANALYTICS;ENABLE_CLOUD_SERVICES_UNET;ENABLE_CLOUD_SERVICES_BUILD;ENABLE_CLOUD_LICENSE;ENABLE_EDITOR_HUB_LICENSE;ENABLE_WEBSOCKET_CLIENT;ENABLE_DIRECTOR_AUDIO;ENABLE_DIRECTOR_TEXTURE;ENABLE_MANAGED_JOBS;ENABLE_MANAGED_TRANSFORM_JOBS;ENABLE_MANAGED_ANIMATION_JOBS;ENABLE_MANAGED_AUDIO_JOBS;INCLUDE_DYNAMIC_GI;ENABLE_MONO_BDWGC;ENABLE_SCRIPTING_GC_WBARRIERS;PLATFORM_SUPPORTS_MONO;RENDER_SOFTWARE_CURSOR;ENABLE_VIDEO;PLATFORM_STANDALONE;PLATFORM_STANDALONE_WIN;UNITY_STANDALONE_WIN;UNITY_STANDALONE;ENABLE_RUNTIME_GI;ENABLE_MOVIES;ENABLE_NETWORK;ENABLE_CRUNCH_TEXTURE_COMPRESSION;ENABLE_OUT_OF_PROCESS_CRASH_HANDLER;ENABLE_CLUSTER_SYNC;ENABLE_CLUSTERINPUT;ENABLE_WEBSOCKET_HOST;ENABLE_MONO;NET_STANDARD_2_0;ENABLE_PROFILER;UNITY_ASSERTIONS;UNITY_EDITOR;UNITY_EDITOR_64;UNITY_EDITOR_WIN;ENABLE_UNITY_COLLECTIONS_CHECKS;ENABLE_BURST_AOT;UNITY_TEAM_LICENSE;ENABLE_CUSTOM_RENDER_TEXTURE;ENABLE_DIRECTOR;ENABLE_LOCALIZATION;ENABLE_SPRITES;ENABLE_TERRAIN;ENABLE_TILEMAP;ENABLE_TIMELINE;ENABLE_LEGACY_INPUT_MANAGER;CROSS_PLATFORM_INPUT;UNITY_POST_PROCESSING_STACK_V2;CSHARP_7_OR_LATER;CSHARP_7_3_OR_NEWER</DefineConstants>
<DefineConstants>DEBUG;TRACE;UNITY_2019_4_0;UNITY_2019_4;UNITY_2019;UNITY_5_3_OR_NEWER;UNITY_5_4_OR_NEWER;UNITY_5_5_OR_NEWER;UNITY_5_6_OR_NEWER;UNITY_2017_1_OR_NEWER;UNITY_2017_2_OR_NEWER;UNITY_2017_3_OR_NEWER;UNITY_2017_4_OR_NEWER;UNITY_2018_1_OR_NEWER;UNITY_2018_2_OR_NEWER;UNITY_2018_3_OR_NEWER;UNITY_2018_4_OR_NEWER;UNITY_2019_1_OR_NEWER;UNITY_2019_2_OR_NEWER;UNITY_2019_3_OR_NEWER;UNITY_2019_4_OR_NEWER;PLATFORM_ARCH_64;UNITY_64;UNITY_INCLUDE_TESTS;ENABLE_AR;ENABLE_AUDIO;ENABLE_CACHING;ENABLE_CLOTH;ENABLE_EVENT_QUEUE;ENABLE_MICROPHONE;ENABLE_MULTIPLE_DISPLAYS;ENABLE_PHYSICS;ENABLE_TEXTURE_STREAMING;ENABLE_UNET;ENABLE_LZMA;ENABLE_UNITYEVENTS;ENABLE_VR;ENABLE_WEBCAM;ENABLE_UNITYWEBREQUEST;ENABLE_WWW;ENABLE_CLOUD_SERVICES;ENABLE_CLOUD_SERVICES_COLLAB;ENABLE_CLOUD_SERVICES_COLLAB_SOFTLOCKS;ENABLE_CLOUD_SERVICES_ADS;ENABLE_CLOUD_SERVICES_USE_WEBREQUEST;ENABLE_CLOUD_SERVICES_CRASH_REPORTING;ENABLE_CLOUD_SERVICES_PURCHASING;ENABLE_CLOUD_SERVICES_ANALYTICS;ENABLE_CLOUD_SERVICES_UNET;ENABLE_CLOUD_SERVICES_BUILD;ENABLE_CLOUD_LICENSE;ENABLE_EDITOR_HUB_LICENSE;ENABLE_WEBSOCKET_CLIENT;ENABLE_DIRECTOR_AUDIO;ENABLE_DIRECTOR_TEXTURE;ENABLE_MANAGED_JOBS;ENABLE_MANAGED_TRANSFORM_JOBS;ENABLE_MANAGED_ANIMATION_JOBS;ENABLE_MANAGED_AUDIO_JOBS;INCLUDE_DYNAMIC_GI;ENABLE_MONO_BDWGC;ENABLE_SCRIPTING_GC_WBARRIERS;PLATFORM_SUPPORTS_MONO;RENDER_SOFTWARE_CURSOR;ENABLE_VIDEO;PLATFORM_STANDALONE;PLATFORM_STANDALONE_WIN;UNITY_STANDALONE_WIN;UNITY_STANDALONE;ENABLE_RUNTIME_GI;ENABLE_MOVIES;ENABLE_NETWORK;ENABLE_CRUNCH_TEXTURE_COMPRESSION;ENABLE_OUT_OF_PROCESS_CRASH_HANDLER;ENABLE_CLUSTER_SYNC;ENABLE_CLUSTERINPUT;ENABLE_WEBSOCKET_HOST;ENABLE_MONO;NET_STANDARD_2_0;ENABLE_PROFILER;UNITY_ASSERTIONS;UNITY_EDITOR;UNITY_EDITOR_64;UNITY_EDITOR_WIN;ENABLE_UNITY_COLLECTIONS_CHECKS;ENABLE_BURST_AOT;UNITY_TEAM_LICENSE;ENABLE_CUSTOM_RENDER_TEXTURE;ENABLE_DIRECTOR;ENABLE_LOCALIZATION;ENABLE_SPRITES;ENABLE_TERRAIN;ENABLE_TILEMAP;ENABLE_TIMELINE;ENABLE_LEGACY_INPUT_MANAGER;CROSS_PLATFORM_INPUT;UNITY_POST_PROCESSING_STACK_V2;AMPLIFY_SHADER_EDITOR;CSHARP_7_OR_LATER;CSHARP_7_3_OR_NEWER</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<NoWarn>0169</NoWarn>
@ -287,14 +287,16 @@
<Compile Include="Assets\Resources\UI\TipPanel\Scripts\TipPanel.cs" />
<Compile Include="Assets\Resources\UI\TipsCheckPanel\Scripts\TipsCheckPanel.cs" />
<Compile Include="Assets\Script\BtClick.cs" />
<Compile Include="Assets\Script\CarGearControl.cs" />
<Compile Include="Assets\Script\GameInfo.cs" />
<Compile Include="Assets\Script\Manaegr\AudioManager.cs" />
<Compile Include="Assets\Script\Manaegr\CarInfoManager.cs" />
<Compile Include="Assets\Script\Manaegr\CarManager.cs" />
<Compile Include="Assets\Script\Manaegr\CarTempManager.cs" />
<Compile Include="Assets\Script\Manaegr\ErrorUIManager.cs" />
<Compile Include="Assets\Script\Manaegr\GameFlowManager.cs" />
<Compile Include="Assets\Script\Manaegr\GameManager.cs" />
<Compile Include="Assets\Script\Manaegr\MBOXManager.cs" />
<Compile Include="Assets\Script\Manaegr\MenuManager.cs" />
<Compile Include="Assets\Script\ModbusTcpClient.cs" />
<Compile Include="Assets\Script\MyButtonXAN.cs" />
<Compile Include="Assets\Script\Objective\AddMainScenes.cs" />
@ -344,6 +346,7 @@
<Compile Include="Assets\Script\Old\pARK.cs" />
<Compile Include="Assets\Script\Old\parkPanel.cs" />
<Compile Include="Assets\Script\Old\shengjiang_2.cs" />
<Compile Include="Assets\Script\StarScene.cs" />
<Compile Include="Assets\Script\SteeringWheelController.cs" />
<Compile Include="Assets\Script\test.cs" />
<Compile Include="Assets\SuperSplinesPro\Scripts\Animation\SplineAnimator.cs" />
@ -528,6 +531,7 @@
<None Include="Assets\Plugin\Standard Assets\Effects\ImageEffects\Shaders\Contrast Stretch\MinMaxReduction.shader" />
<None Include="Assets\Plugin\Standard Assets\Effects\ImageEffects\Shaders\BlurEffectConeTaps.shader" />
<None Include="Assets\Plugin\Standard Assets\Effects\ImageEffects\Shaders\_DepthOfField\Bokeh34.shader" />
<None Include="Assets\GameAssets\Art\Wet Roads\Shader\Road_Shader.shader" />
<None Include="Assets\Plugin\Standard Assets\Effects\ImageEffects\Shaders\ColorCorrectionEffect.shader" />
<None Include="Assets\Plugin\Hard Surface Pro\HardSurface Shaders\HardSurface Pro Draw Last Transparent.shader" />
<None Include="Assets\Plugin\Standard Assets\Effects\ImageEffects\Shaders\FisheyeShader.shader" />
@ -1283,6 +1287,10 @@
<Project>{EE237F7D-34D2-D9AE-0263-133C3F95283C}</Project>
<Name>Boxophobic.Utils.Editor</Name>
</ProjectReference>
<ProjectReference Include="AmplifyShaderEditor.csproj">
<Project>{19680DCC-6E6D-4577-34A0-666CCEA436DB}</Project>
<Name>AmplifyShaderEditor</Name>
</ProjectReference>
<ProjectReference Include="Boxophobic.AtmosphericHeightFog.Runtime.csproj">
<Project>{4C96BD12-F6EB-0840-DC94-863A1F7D1D40}</Project>
<Name>Boxophobic.AtmosphericHeightFog.Runtime</Name>

View File

@ -2688,6 +2688,7 @@ Transform:
- {fileID: 409792}
- {fileID: 489826}
- {fileID: 6508499484186839446}
- {fileID: 4279975699638886894}
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
@ -2943,6 +2944,7 @@ MonoBehaviour:
brakeAxis: Fire3
handbrakeAxis: Jump
resetVehicleKey: 13
xxxx: 0
--- !u!114 &11487120
MonoBehaviour:
m_ObjectHideFlags: 0
@ -3258,6 +3260,89 @@ BoxCollider:
serializedVersion: 2
m_Size: {x: 1, y: 1, z: 1}
m_Center: {x: 0, y: 0, z: 0}
--- !u!1 &3190887408370009811
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 4279975699638886894}
- component: {fileID: 1592101705092406238}
- component: {fileID: 6131819028027874167}
m_Layer: 0
m_Name: Camera
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &4279975699638886894
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3190887408370009811}
m_LocalRotation: {x: -0.28546208, y: 0.00861602, z: -0.0025655522, w: -0.95834786}
m_LocalPosition: {x: 0.11001393, y: 4.044464, z: -5.319769}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 448752}
m_RootOrder: 6
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!20 &1592101705092406238
Camera:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3190887408370009811}
m_Enabled: 1
serializedVersion: 2
m_ClearFlags: 1
m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0}
m_projectionMatrixMode: 1
m_GateFitMode: 2
m_FOVAxisMode: 0
m_SensorSize: {x: 36, y: 24}
m_LensShift: {x: 0, y: 0}
m_FocalLength: 50
m_NormalizedViewPortRect:
serializedVersion: 2
x: 0
y: 0
width: 1
height: 1
near clip plane: 0.3
far clip plane: 1000
field of view: 60
orthographic: 0
orthographic size: 5
m_Depth: 0
m_CullingMask:
serializedVersion: 2
m_Bits: 4294967295
m_RenderingPath: -1
m_TargetTexture: {fileID: 0}
m_TargetDisplay: 0
m_TargetEye: 3
m_HDR: 1
m_AllowMSAA: 1
m_AllowDynamicResolution: 0
m_ForceIntoRT: 0
m_OcclusionCulling: 1
m_StereoConvergence: 10
m_StereoSeparation: 0.022
--- !u!81 &6131819028027874167
AudioListener:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3190887408370009811}
m_Enabled: 1
--- !u!1001 &6762274349597093501
PrefabInstance:
m_ObjectHideFlags: 0

View File

@ -28,7 +28,7 @@ public class VehicleStandardInputInspector : Editor
EditorGUILayout.PropertyField(propThrottleAndBrakeInput);
EditorGUILayout.PropertyField(serializedObject.FindProperty("steerAxis"));
EditorGUILayout.PropertyField(serializedObject.FindProperty("xxxxxx"));
EditorGUILayout.PropertyField(serializedObject.FindProperty("xxxx"));
VehicleStandardInput.ThrottleAndBrakeInput throttleAndBrakeInput = (VehicleStandardInput.ThrottleAndBrakeInput)propThrottleAndBrakeInput.enumValueIndex;

View File

@ -31,7 +31,7 @@ namespace EVP
bool m_doReset = false;
public float xxxx;
void OnEnable()
{
// Cache vehicle
@ -47,7 +47,11 @@ namespace EVP
if (Input.GetKeyDown(resetVehicleKey)) m_doReset = true;
}
public void SetThrottleValue(float value)
{
// 将输入值从 0-100 范围映射到 0-1 范围
xxxx = Mathf.Clamp(value, 0, 100) / 100.0f;
}
// public float xxxxxx;
void FixedUpdate()
{
@ -72,11 +76,12 @@ namespace EVP
forwardInput = Mathf.Clamp01(Input.GetAxis(throttleAndBrakeAxis));
reverseInput = Mathf.Clamp01(-Input.GetAxis(throttleAndBrakeAxis));
}
// forwardInput = Mathf.Clamp01(xxxx);
// Debug.Log(Mathf.Clamp01(xxxx));
// forwardInput = xxxxxx;
Debug.Log("前轮控制左右的参数----->" + steerInput);
Debug.Log("往前的参数----->" + forwardInput);
Debug.Log("往后的参数----->" + reverseInput);
// Debug.Log("前轮控制左右的参数----->" + steerInput);
// Debug.Log("往前的参数----->" + forwardInput);
// Debug.Log("往后的参数----->" + reverseInput);
// Translate forward/reverse to vehicle input
float throttleInput = 0.0f;
@ -133,10 +138,17 @@ namespace EVP
// Apply input to vehicle
// target.steerInput = steerInput;
// target.throttleInput = throttleInput;
// target.brakeInput = brakeInput;
// target.handbrakeInput = handbrakeInput;
target.steerInput = steerInput;
target.throttleInput = throttleInput;
target.brakeInput = brakeInput;
target.handbrakeInput = handbrakeInput;
// Debug.Log(throttleInput+"---"+brakeInput+"---"+handbrakeInput);
// Do a vehicle reset

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 57dae5ea6bfdfa446a28f08454a440f2
guid: 0abba0f3ae5c78c4cbae8beb2bcde8b9
folderAsset: yes
DefaultImporter:
externalObjects: {}

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: aaea30a6d86e8b942b7356bd40f1ebab
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

View File

@ -0,0 +1,97 @@
fileFormatVersion: 2
guid: 6e9c10a4c8736b14f866f59ee7fb70c6
ModelImporter:
serializedVersion: 19301
internalIDToNameTable: []
externalObjects: {}
materials:
materialImportMode: 1
materialName: 0
materialSearch: 1
materialLocation: 1
animations:
legacyGenerateAnimations: 4
bakeSimulation: 0
resampleCurves: 1
optimizeGameObjects: 0
motionNodeName:
rigImportErrors:
rigImportWarnings:
animationImportErrors:
animationImportWarnings:
animationRetargetingWarnings:
animationDoRetargetingWarnings: 0
importAnimatedCustomProperties: 0
importConstraints: 0
animationCompression: 1
animationRotationError: 0.5
animationPositionError: 0.5
animationScaleError: 0.5
animationWrapMode: 0
extraExposedTransformPaths: []
extraUserProperties: []
clipAnimations: []
isReadable: 1
meshes:
lODScreenPercentages: []
globalScale: 1
meshCompression: 0
addColliders: 0
useSRGBMaterialColor: 1
sortHierarchyByName: 1
importVisibility: 1
importBlendShapes: 1
importCameras: 1
importLights: 1
fileIdsGeneration: 2
swapUVChannels: 0
generateSecondaryUV: 0
useFileUnits: 1
keepQuads: 0
weldVertices: 1
preserveHierarchy: 0
skinWeightsMode: 0
maxBonesPerVertex: 4
minBoneWeight: 0.001
meshOptimizationFlags: -1
indexFormat: 0
secondaryUVAngleDistortion: 8
secondaryUVAreaDistortion: 15.000001
secondaryUVHardAngle: 88
secondaryUVPackMargin: 4
useFileScale: 1
tangentSpace:
normalSmoothAngle: 60
normalImportMode: 0
tangentImportMode: 3
normalCalculationMode: 4
legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 0
blendShapeNormalImportMode: 1
normalSmoothingSource: 0
referencedClips: []
importAnimation: 1
humanDescription:
serializedVersion: 3
human: []
skeleton: []
armTwist: 0.5
foreArmTwist: 0.5
upperLegTwist: 0.5
legTwist: 0.5
armStretch: 0.05
legStretch: 0.05
feetSpacing: 0
globalScale: 1
rootMotionBoneName:
hasTranslationDoF: 0
hasExtraRoot: 0
skeletonHasParents: 1
lastHumanDescriptionAvatarSource: {instanceID: 0}
autoGenerateAvatarMappingIfUnspecified: 1
animationType: 2
humanoidOversampling: 1
avatarSetup: 0
additionalBone: 0
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

View File

@ -0,0 +1,97 @@
fileFormatVersion: 2
guid: 20a39fb40d2265741b7dfb8ab379067a
ModelImporter:
serializedVersion: 19301
internalIDToNameTable: []
externalObjects: {}
materials:
materialImportMode: 1
materialName: 0
materialSearch: 1
materialLocation: 1
animations:
legacyGenerateAnimations: 4
bakeSimulation: 0
resampleCurves: 1
optimizeGameObjects: 0
motionNodeName:
rigImportErrors:
rigImportWarnings:
animationImportErrors:
animationImportWarnings:
animationRetargetingWarnings:
animationDoRetargetingWarnings: 0
importAnimatedCustomProperties: 0
importConstraints: 0
animationCompression: 1
animationRotationError: 0.5
animationPositionError: 0.5
animationScaleError: 0.5
animationWrapMode: 0
extraExposedTransformPaths: []
extraUserProperties: []
clipAnimations: []
isReadable: 0
meshes:
lODScreenPercentages: []
globalScale: 1
meshCompression: 0
addColliders: 0
useSRGBMaterialColor: 1
sortHierarchyByName: 1
importVisibility: 1
importBlendShapes: 1
importCameras: 1
importLights: 1
fileIdsGeneration: 2
swapUVChannels: 0
generateSecondaryUV: 0
useFileUnits: 1
keepQuads: 0
weldVertices: 1
preserveHierarchy: 0
skinWeightsMode: 0
maxBonesPerVertex: 4
minBoneWeight: 0.001
meshOptimizationFlags: -1
indexFormat: 0
secondaryUVAngleDistortion: 8
secondaryUVAreaDistortion: 15.000001
secondaryUVHardAngle: 88
secondaryUVPackMargin: 4
useFileScale: 1
tangentSpace:
normalSmoothAngle: 60
normalImportMode: 0
tangentImportMode: 3
normalCalculationMode: 4
legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 0
blendShapeNormalImportMode: 1
normalSmoothingSource: 0
referencedClips: []
importAnimation: 1
humanDescription:
serializedVersion: 3
human: []
skeleton: []
armTwist: 0.5
foreArmTwist: 0.5
upperLegTwist: 0.5
legTwist: 0.5
armStretch: 0.05
legStretch: 0.05
feetSpacing: 0
globalScale: 1
rootMotionBoneName:
hasTranslationDoF: 0
hasExtraRoot: 0
skeletonHasParents: 1
lastHumanDescriptionAvatarSource: {instanceID: 0}
autoGenerateAvatarMappingIfUnspecified: 1
animationType: 2
humanoidOversampling: 1
avatarSetup: 0
additionalBone: 0
userData:
assetBundleName:
assetBundleVariant:

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 625ae008c50968f4db89f28206788e12
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

File diff suppressed because it is too large Load Diff

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 625ae008c50968f4db89f28206788e12
guid: add754855a1597e47b8c7686c6ee6462
DefaultImporter:
externalObjects: {}
userData:

View File

@ -43,7 +43,7 @@ public class BtClick : MonoBehaviour
// }
this.GetComponent<Button>().onClick.AddListener(delegate { GameManager.instance.OnBtClick(carType, this.name); });
this.GetComponent<Button>().onClick.AddListener(delegate { MenuManager.instance.OnBtClick(carType, this.name); });
// OnStartCompleted?.Invoke();

View File

@ -0,0 +1,64 @@
using EVP;
using UnityEngine;
namespace Script
{
using UnityEngine;
public class CarGearControl : MonoBehaviour
{
private VehicleController vehicleController;
private VehicleStandardInput vehicleStandardInput;
public int currentGear = 0; // 当前挡位
public float[] gearSpeeds = { 0f, 20f, 40f, 60f }; // 每个挡位的最大速度
public float xx;
float steerInput, throttleInput, brakeInput, handbrakeInput;
void Start()
{
vehicleController = GetComponent<VehicleController>();
vehicleStandardInput = GetComponent<VehicleStandardInput>();
}
void Update()
{
// 检测并更新挡位
CheckAndUpdateGear();
// 根据当前挡位设置车辆速度
SetVehicleSpeed(gearSpeeds[currentGear]);
vehicleController.steerInput = 0;
vehicleController.throttleInput = xx;
vehicleController.brakeInput = 0;
vehicleController.handbrakeInput = 0;
Debug.Log($"{steerInput}--{throttleInput}--{brakeInput}--{handbrakeInput}");
// vehicleStandardInput.SetThrottleValue(xx);
// SetSpeedBasedOnValue(1);
}
void CheckAndUpdateGear()
{
if (Input.GetKeyDown(KeyCode.Alpha1)) currentGear = 1;
if (Input.GetKeyDown(KeyCode.Alpha2)) currentGear = 2;
if (Input.GetKeyDown(KeyCode.Alpha3)) currentGear = 3;
if (Input.GetKeyDown(KeyCode.Alpha0)) currentGear = 0; // 假设0为空挡
}
void SetVehicleSpeed(float maxSpeed)
{
// 在这里,你需要根据你的车辆控制系统来调整速度。
// 以下是一个假设的方法你可能需要根据EVP5的API来修改它。
vehicleController.maxSpeedForward = maxSpeed;
vehicleController.throttleInput = 1;
}
}
}

View File

@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: b4decbca4aaf413abd074ba71736660a
timeCreated: 1702964744

View File

@ -0,0 +1,23 @@
using System;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
namespace Script
{
public class GameInfo : MonoBehaviour
{
public Dictionary<CarType, string> carSelectTypeInfo = new Dictionary<CarType, string>();
public static GameInfo instance;
private void Awake()
{
instance = this;
DontDestroyOnLoad(this);
}
}
}

View File

@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: beb73c429dba468f8a8c37893d1204b8
timeCreated: 1702980565

View File

@ -111,7 +111,7 @@ public class CarInfoManager : MonoBehaviour
fuelLevel.text = Convert.ToInt32(fuelLevelValue).ToString()+"%";
// 可以在这里添加油量显示逻辑
Debug.Log("Current Fuel Level: " + fuelLevelValue);
// Debug.Log("Current Fuel Level: " + fuelLevelValue);
// Debug.Log("Total Distance Traveled: " + totalDistanceTraveled + " km");

View File

@ -1,145 +0,0 @@
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
using UnityEngine.UI;
public enum CarType
{
,
,
,
}
public class GameManager : MonoBehaviour
{
public static GameManager instance;
// public List<BtClick> home; //首页
//
// // public List<BtClick> carType; //车类型
// public List<BtClick> weather; //天气
// public List<BtClick> dangerDriving; //危险驾驶
public GameObject[] uiGames;
private int currentStep = 0; // 当前步骤索引
public Dictionary<CarType, string> carSelectTypeInfo = new Dictionary<CarType, string>();
private void Awake()
{
instance = this;
// home = new List<BtClick>();
// // carType = new List<BtClick>();
// weather = new List<BtClick>();
// dangerDriving = new List<BtClick>();
DontDestroyOnLoad(this);
}
private void Start()
{
// // 等待所有 BtClick 对象的 Start 方法完成
// yield return StartCoroutine(WaitForBtClickStarts());
//
// // 所有 BtClick 的 Start 方法已完成,继续执行其他代码
// Debug.Log("All BtClick Start methods completed.");
// // 执行其他方法
// for (int i = 0; i < uiGames.Length; i++)
// {
// uiGames[i].SetActive(false);
// }
//
// uiGames[0].SetActive(true);
// GetComponent<SteeringWheelController>().buttons = home;
// UIClick(CarType.首页, "模拟驾驶体验");
// NextStep("3");
GetComponent<SteeringWheelController>().buttons = uiGames[currentStep].GetComponentsInChildren<Button>();
GetComponent<SteeringWheelController>().HighlightButton(0);
}
// private IEnumerator WaitForBtClickStarts()
// {
// // 获取所有 BtClick 实例
// BtClick[] btClicks = FindObjectsOfType<BtClick>();
// int completedCount = 0;
//
// // 为每个 BtClick 实例的 OnStartCompleted 事件添加监听器
// foreach (var btClick in btClicks)
// {
// btClick.OnStartCompleted += () => { completedCount++; };
// }
//
// // 等待直到所有 BtClick 实例的 Start 方法完成
// while (completedCount < btClicks.Length)
// {
// yield return null; // 等待一帧
// }
// }
public void OnBtClick(CarType carType, string btName)
{
carSelectTypeInfo.Add(carType, btName);
NextStep();
foreach (var v in carSelectTypeInfo)
{
Debug.Log(v.Key + "--->" + v.Value);
}
}
public void NextStep()
{
if (currentStep >= uiGames.Length - 1)
return;
for (int i = 0; i < uiGames.Length; i++)
{
uiGames[i].SetActive(false);
}
currentStep++;
uiGames[currentStep].SetActive(true);
uiGames[currentStep].transform.GetChild(0).GetComponent<BtClick>().OnClickSprite();
// Debug.Log(uiGames[currentStep].transform.GetChild(0).GetComponent<Button>());
GetComponent<SteeringWheelController>().buttons = uiGames[currentStep].GetComponentsInChildren<Button>();
}
// 调用这个方法来返回上一个步骤
public void PreviousStep()
{
if (currentStep > 0)
{
for (int i = 0; i < uiGames.Length; i++)
{
uiGames[i].SetActive(false);
}
var item = carSelectTypeInfo.ElementAt(carSelectTypeInfo.Count - 1);
carSelectTypeInfo.Remove(item.Key);
currentStep--;
uiGames[currentStep].SetActive(true);
}
uiGames[currentStep].transform.GetChild(0).GetComponent<BtClick>().OnClickSprite();
GetComponent<SteeringWheelController>().buttons = uiGames[currentStep].GetComponentsInChildren<Button>();
}
}

View File

@ -0,0 +1,98 @@
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using Script;
using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEngine.UI;
public enum CarType
{
,
,
,
}
public class MenuManager : MonoBehaviour
{
public static MenuManager instance;
public GameObject[] uiGames;
private int currentStep = 0; // 当前步骤索引
private void Awake()
{
instance = this;
}
private void Start()
{
GetComponent<SteeringWheelController>().buttons = uiGames[currentStep].GetComponentsInChildren<Button>();
GetComponent<SteeringWheelController>().HighlightButton(0);
}
public void OnBtClick(CarType carType, string btName)
{
GameInfo.instance.carSelectTypeInfo.Add(carType, btName);
NextStep();
if ( GameInfo.instance.carSelectTypeInfo.Count() == 3)
{
SceneManager.LoadScene("demo");
}
foreach (var v in GameInfo.instance.carSelectTypeInfo)
{
Debug.Log(v.Key + "--->" + v.Value);
}
}
public void NextStep()
{
if (currentStep >= uiGames.Length - 1)
return;
for (int i = 0; i < uiGames.Length; i++)
{
uiGames[i].SetActive(false);
}
currentStep++;
uiGames[currentStep].SetActive(true);
uiGames[currentStep].transform.GetChild(0).GetComponent<BtClick>().OnClickSprite();
// Debug.Log(uiGames[currentStep].transform.GetChild(0).GetComponent<Button>());
GetComponent<SteeringWheelController>().buttons = uiGames[currentStep].GetComponentsInChildren<Button>();
}
// 调用这个方法来返回上一个步骤
public void PreviousStep()
{
if (currentStep > 0)
{
for (int i = 0; i < uiGames.Length; i++)
{
uiGames[i].SetActive(false);
}
var item = GameInfo.instance.carSelectTypeInfo.ElementAt( GameInfo.instance.carSelectTypeInfo.Count - 1);
GameInfo.instance.carSelectTypeInfo.Remove(item.Key);
currentStep--;
uiGames[currentStep].SetActive(true);
}
uiGames[currentStep].transform.GetChild(0).GetComponent<BtClick>().OnClickSprite();
GetComponent<SteeringWheelController>().buttons = uiGames[currentStep].GetComponentsInChildren<Button>();
}
}

View File

@ -14,7 +14,7 @@ using UnityEngine;
public class ModbusTcpClient
{
private TcpClient tcpClient;
private string serverIp = "127.0.0.1";
private string serverIp = "172.16.1.17";
private int serverPort = 12315;
public ModbusTcpClient()

View File

@ -0,0 +1,13 @@
using UnityEngine;
using UnityEngine.SceneManagement;
namespace Script
{
public class StarScene : MonoBehaviour
{
private void Start()
{
SceneManager.LoadScene("menu");
}
}
}

View File

@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 26032863a45242289a638569ce4bc5fd
timeCreated: 1702980700

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -5,10 +5,16 @@ EditorBuildSettings:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Scenes:
- enabled: 1
path: Assets/Scenes/start.unity
guid: add754855a1597e47b8c7686c6ee6462
- enabled: 1
path: Assets/Scenes/menu.unity
guid: 625ae008c50968f4db89f28206788e12
- enabled: 0
path: "Assets/Scenes/\u9A8C\u8BC1\u573A\u666F.unity"
guid: ad67588ec90a8af4397bae114ae49c07
- enabled: 1
- enabled: 0
path: Assets/Scenes/login.unity
guid: c5fbe3e754c320e438901ba713675361
- enabled: 0
@ -20,4 +26,7 @@ EditorBuildSettings:
- enabled: 0
path: Assets/Plugin/ParkingAssets/Scenes/Parking.unity
guid: 9fc0d4010bbf28b4594072e72b8655ab
- enabled: 1
path: Assets/demo.unity
guid: 19e5e40f3345d8747b22df3dc2f39aed
m_configObjects: {}

View File

@ -570,7 +570,7 @@ PlayerSettings:
webGLThreadsSupport: 0
webGLWasmStreaming: 0
scriptingDefineSymbols:
1: CROSS_PLATFORM_INPUT;UNITY_POST_PROCESSING_STACK_V2
1: CROSS_PLATFORM_INPUT;UNITY_POST_PROCESSING_STACK_V2;AMPLIFY_SHADER_EDITOR
4: CROSS_PLATFORM_INPUT;MOBILE_INPUT
7: CROSS_PLATFORM_INPUT;MOBILE_INPUT;UNITY_POST_PROCESSING_STACK_V2
13: UNITY_POST_PROCESSING_STACK_V2

View File

@ -9,6 +9,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Boxophobic.AtmosphericHeigh
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Boxophobic.Utils.Editor", "Boxophobic.Utils.Editor.csproj", "{EE237F7D-34D2-D9AE-0263-133C3F95283C}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AmplifyShaderEditor", "AmplifyShaderEditor.csproj", "{19680DCC-6E6D-4577-34A0-666CCEA436DB}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Assembly-CSharp-Editor", "Assembly-CSharp-Editor.csproj", "{50ADFF00-8BA1-5513-3A1B-93449EB2679C}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Boxophobic.AtmosphericHeightFog.Editor", "Boxophobic.AtmosphericHeightFog.Editor.csproj", "{2FB7B5C3-8350-5D1C-9F5A-F691307D3EFB}"
@ -35,6 +37,10 @@ Global
{EE237F7D-34D2-D9AE-0263-133C3F95283C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{EE237F7D-34D2-D9AE-0263-133C3F95283C}.Release|Any CPU.ActiveCfg = Release|Any CPU
{EE237F7D-34D2-D9AE-0263-133C3F95283C}.Release|Any CPU.Build.0 = Release|Any CPU
{19680DCC-6E6D-4577-34A0-666CCEA436DB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{19680DCC-6E6D-4577-34A0-666CCEA436DB}.Debug|Any CPU.Build.0 = Debug|Any CPU
{19680DCC-6E6D-4577-34A0-666CCEA436DB}.Release|Any CPU.ActiveCfg = Release|Any CPU
{19680DCC-6E6D-4577-34A0-666CCEA436DB}.Release|Any CPU.Build.0 = Release|Any CPU
{50ADFF00-8BA1-5513-3A1B-93449EB2679C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{50ADFF00-8BA1-5513-3A1B-93449EB2679C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{50ADFF00-8BA1-5513-3A1B-93449EB2679C}.Release|Any CPU.ActiveCfg = Release|Any CPU