feat(Enemy): 添加敌人攻击动画速度控制功能

- 新增attackDuration属性用于控制完整攻击动作时长
- 实现攻击动画速度动态调整,支持自定义攻击持续时间
- 添加健康条显示组件到敌人类
- 增加物理材质配置优化碰撞效果

- 添加微信小游戏平台支持和适配
- 集成自适应性能包和微信小游戏SDK
- 配置项目构建设置支持多平台发布
- 更新质量设置以适配不同目标平台

- 调整场景中物体位置和旋转参数
- 修复角色控制器材质引用问题
- 优化敌人AI移动和攻击逻辑
```
This commit is contained in:
huadexuan committed 2026-08-23 22:23:15 +08:00
1 parent b807bb80ec
commit 48dfa0d95d
38 files changed
+2295 -36

No files matched your search

+10
View File
@@ -8,13 +8,23 @@ EditorBuildSettings:
- enabled: 1
path: Assets/Scenes/SampleScene.scene
guid: 7f8a9209e2c654770b6c8311c7e23e18
m_BuildProfiles:
- enabled: 1
path: Assets/Settings/Build Profiles/New WeChat Profile.asset
guid: 01399412e246a4ea1919c7bbb0517f33
m_configObjects:
com.unity.adaptiveperformance.loader_settings: {fileID: 11400000, guid: 0def66eac048f460188dfa376c9afff1,
type: 2}
com.unity.adaptiveperformance.simulator.provider_settings: {fileID: 11400000,
guid: b8a7f88d1a5a949a49949bb4bb80f68d, type: 2}
m_SlimFeaturesWeixinMiniGame:
ACLDecompression: 0
AllocateOverhead: 1
DecompressASTC: 0
DecompressDXT: 1
DecompressETC: 1
FreeTypeSfntPng: 1
JobWorker: 2
LightProbe: 2
RootMotion: 0
UseStringInternPool: 2
+9 -2
View File
@@ -208,7 +208,8 @@ PlayerSettings:
resetResolutionOnWindowResize: 0
androidSupportedAspectRatio: 1
androidMaxAspectRatio: 2.1
applicationIdentifier: {}
applicationIdentifier:
Standalone: com.DefaultCompany.---------
buildNumber:
Standalone: 0
VisionOS: 0
@@ -404,6 +405,9 @@ PlayerSettings:
- m_BuildTarget: HMIAndroidPlayer
m_APIs: 150000000b000000
m_Automatic: 1
- m_BuildTarget: WeixinMiniGameSupport
m_APIs: 0b000000
m_Automatic: 0
m_BuildTargetVRSettings:
- m_BuildTarget: Standalone
m_Enabled: 0
@@ -454,6 +458,8 @@ PlayerSettings:
m_Format: 3
- m_BuildTarget: WebGL
m_Format: 3
- m_BuildTarget: WeixinMiniGame
m_Format: 3
playModeTestRunnerEnabled: 0
runPlayModeTestAsEditModeTest: 0
actionOnDotNetUnhandledException: 1
@@ -860,6 +866,7 @@ PlayerSettings:
webGLPowerPreference: 2
scriptingDefineSymbols:
Standalone: RH_SerializedDictionary
WeixinMiniGame: RH_SerializedDictionary
additionalCompilerArguments: {}
platformArchitecture: {}
scriptingBackend: {}
@@ -1028,7 +1035,7 @@ PlayerSettings:
weixinMiniGameInjectStrippedMethodLogger: 0
weixinMiniGameEnableDotNetWasmExceptionHandling: 1
weixinMiniGamePreserveEventDelegate: 0
activeSubplatform: 0
activeSubplatform: 1
serializedFileTypeTreeMemoryOptimization: 0
stripBuiltinResources: 0
minigameMTRendering: 0
+141 -12
View File
@@ -6,7 +6,7 @@ QualitySettings:
serializedVersion: 5
m_CurrentQuality: 2
m_QualitySettings:
- serializedVersion: 2
- serializedVersion: 3
name: Very Low
pixelLightCount: 0
shadows: 0
@@ -19,16 +19,20 @@ QualitySettings:
shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667}
shadowmaskMode: 0
skinWeights: 1
textureQuality: 1
globalTextureMipmapLimit: 1
textureMipmapLimitSettings: []
anisotropicTextures: 0
antiAliasing: 0
softParticles: 0
softVegetation: 0
realtimeReflectionProbes: 0
billboardsFaceCameraPosition: 0
useLegacyDetailDistribution: 1
vSyncCount: 0
realtimeGICPUUsage: 25
lodBias: 0.3
maximumLODLevel: 0
enableLODCrossFade: 1
streamingMipmapsActive: 0
streamingMipmapsAddAllCameras: 1
streamingMipmapsMemoryBudget: 512
@@ -41,8 +45,25 @@ QualitySettings:
asyncUploadPersistentBuffer: 1
resolutionScalingFixedDPIFactor: 1
customRenderPipeline: {fileID: 0}
terrainQualityOverrides: 0
terrainPixelError: 1
terrainDetailDensityScale: 1
terrainBasemapDistance: 1000
terrainDetailDistance: 80
terrainTreeDistance: 5000
terrainBillboardStart: 50
terrainFadeLength: 5
terrainMaxTrees: 50
vgPersistentBufferSize: 256
vgStreamingBufferSize: 512
vgPageUploadBufferSize: 64
vgPixelsPerEdge: 1
vgVertexCacheActive: 0
vgVertexCacheAutoVertexAnim: 0
vgVertexCacheMaxEntries: 32768
vgVertexCacheLoadFactor: 0.67
excludedTargetPlatforms: []
- serializedVersion: 2
- serializedVersion: 3
name: Low
pixelLightCount: 0
shadows: 0
@@ -55,16 +76,20 @@ QualitySettings:
shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667}
shadowmaskMode: 0
skinWeights: 2
textureQuality: 0
globalTextureMipmapLimit: 0
textureMipmapLimitSettings: []
anisotropicTextures: 0
antiAliasing: 0
softParticles: 0
softVegetation: 0
realtimeReflectionProbes: 0
billboardsFaceCameraPosition: 0
useLegacyDetailDistribution: 1
vSyncCount: 0
realtimeGICPUUsage: 25
lodBias: 0.4
maximumLODLevel: 0
enableLODCrossFade: 1
streamingMipmapsActive: 0
streamingMipmapsAddAllCameras: 1
streamingMipmapsMemoryBudget: 512
@@ -77,8 +102,25 @@ QualitySettings:
asyncUploadPersistentBuffer: 1
resolutionScalingFixedDPIFactor: 1
customRenderPipeline: {fileID: 0}
terrainQualityOverrides: 0
terrainPixelError: 1
terrainDetailDensityScale: 1
terrainBasemapDistance: 1000
terrainDetailDistance: 80
terrainTreeDistance: 5000
terrainBillboardStart: 50
terrainFadeLength: 5
terrainMaxTrees: 50
vgPersistentBufferSize: 256
vgStreamingBufferSize: 512
vgPageUploadBufferSize: 64
vgPixelsPerEdge: 1
vgVertexCacheActive: 0
vgVertexCacheAutoVertexAnim: 0
vgVertexCacheMaxEntries: 32768
vgVertexCacheLoadFactor: 0.67
excludedTargetPlatforms: []
- serializedVersion: 2
- serializedVersion: 3
name: Medium
pixelLightCount: 1
shadows: 1
@@ -91,16 +133,20 @@ QualitySettings:
shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667}
shadowmaskMode: 0
skinWeights: 2
textureQuality: 0
globalTextureMipmapLimit: 0
textureMipmapLimitSettings: []
anisotropicTextures: 1
antiAliasing: 0
softParticles: 0
softVegetation: 0
realtimeReflectionProbes: 0
billboardsFaceCameraPosition: 0
useLegacyDetailDistribution: 1
vSyncCount: 0
realtimeGICPUUsage: 25
lodBias: 0.7
maximumLODLevel: 0
enableLODCrossFade: 1
streamingMipmapsActive: 0
streamingMipmapsAddAllCameras: 1
streamingMipmapsMemoryBudget: 512
@@ -113,8 +159,25 @@ QualitySettings:
asyncUploadPersistentBuffer: 1
resolutionScalingFixedDPIFactor: 1
customRenderPipeline: {fileID: 0}
terrainQualityOverrides: 0
terrainPixelError: 1
terrainDetailDensityScale: 1
terrainBasemapDistance: 1000
terrainDetailDistance: 80
terrainTreeDistance: 5000
terrainBillboardStart: 50
terrainFadeLength: 5
terrainMaxTrees: 50
vgPersistentBufferSize: 256
vgStreamingBufferSize: 512
vgPageUploadBufferSize: 64
vgPixelsPerEdge: 1
vgVertexCacheActive: 0
vgVertexCacheAutoVertexAnim: 0
vgVertexCacheMaxEntries: 32768
vgVertexCacheLoadFactor: 0.67
excludedTargetPlatforms: []
- serializedVersion: 2
- serializedVersion: 3
name: High
pixelLightCount: 2
shadows: 2
@@ -127,16 +190,20 @@ QualitySettings:
shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667}
shadowmaskMode: 1
skinWeights: 2
textureQuality: 0
globalTextureMipmapLimit: 0
textureMipmapLimitSettings: []
anisotropicTextures: 1
antiAliasing: 0
softParticles: 0
softVegetation: 1
realtimeReflectionProbes: 1
billboardsFaceCameraPosition: 1
useLegacyDetailDistribution: 1
vSyncCount: 0
realtimeGICPUUsage: 50
lodBias: 1
maximumLODLevel: 0
enableLODCrossFade: 1
streamingMipmapsActive: 0
streamingMipmapsAddAllCameras: 1
streamingMipmapsMemoryBudget: 512
@@ -149,8 +216,25 @@ QualitySettings:
asyncUploadPersistentBuffer: 1
resolutionScalingFixedDPIFactor: 1
customRenderPipeline: {fileID: 0}
terrainQualityOverrides: 0
terrainPixelError: 1
terrainDetailDensityScale: 1
terrainBasemapDistance: 1000
terrainDetailDistance: 80
terrainTreeDistance: 5000
terrainBillboardStart: 50
terrainFadeLength: 5
terrainMaxTrees: 50
vgPersistentBufferSize: 256
vgStreamingBufferSize: 512
vgPageUploadBufferSize: 64
vgPixelsPerEdge: 1
vgVertexCacheActive: 0
vgVertexCacheAutoVertexAnim: 0
vgVertexCacheMaxEntries: 32768
vgVertexCacheLoadFactor: 0.67
excludedTargetPlatforms: []
- serializedVersion: 2
- serializedVersion: 3
name: Very High
pixelLightCount: 3
shadows: 2
@@ -163,16 +247,20 @@ QualitySettings:
shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667}
shadowmaskMode: 1
skinWeights: 4
textureQuality: 0
globalTextureMipmapLimit: 0
textureMipmapLimitSettings: []
anisotropicTextures: 1
antiAliasing: 2
softParticles: 1
softVegetation: 1
realtimeReflectionProbes: 1
billboardsFaceCameraPosition: 1
useLegacyDetailDistribution: 1
vSyncCount: 0
realtimeGICPUUsage: 50
lodBias: 1.5
maximumLODLevel: 0
enableLODCrossFade: 1
streamingMipmapsActive: 0
streamingMipmapsAddAllCameras: 1
streamingMipmapsMemoryBudget: 512
@@ -185,8 +273,25 @@ QualitySettings:
asyncUploadPersistentBuffer: 1
resolutionScalingFixedDPIFactor: 1
customRenderPipeline: {fileID: 0}
terrainQualityOverrides: 0
terrainPixelError: 1
terrainDetailDensityScale: 1
terrainBasemapDistance: 1000
terrainDetailDistance: 80
terrainTreeDistance: 5000
terrainBillboardStart: 50
terrainFadeLength: 5
terrainMaxTrees: 50
vgPersistentBufferSize: 256
vgStreamingBufferSize: 512
vgPageUploadBufferSize: 64
vgPixelsPerEdge: 1
vgVertexCacheActive: 0
vgVertexCacheAutoVertexAnim: 0
vgVertexCacheMaxEntries: 32768
vgVertexCacheLoadFactor: 0.67
excludedTargetPlatforms: []
- serializedVersion: 2
- serializedVersion: 3
name: Ultra
pixelLightCount: 4
shadows: 2
@@ -199,16 +304,20 @@ QualitySettings:
shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667}
shadowmaskMode: 1
skinWeights: 4
textureQuality: 0
globalTextureMipmapLimit: 0
textureMipmapLimitSettings: []
anisotropicTextures: 1
antiAliasing: 4
softParticles: 1
softVegetation: 1
realtimeReflectionProbes: 1
billboardsFaceCameraPosition: 1
useLegacyDetailDistribution: 1
vSyncCount: 0
realtimeGICPUUsage: 100
lodBias: 2
maximumLODLevel: 0
enableLODCrossFade: 1
streamingMipmapsActive: 0
streamingMipmapsAddAllCameras: 1
streamingMipmapsMemoryBudget: 512
@@ -221,7 +330,25 @@ QualitySettings:
asyncUploadPersistentBuffer: 1
resolutionScalingFixedDPIFactor: 1
customRenderPipeline: {fileID: 0}
terrainQualityOverrides: 0
terrainPixelError: 1
terrainDetailDensityScale: 1
terrainBasemapDistance: 1000
terrainDetailDistance: 80
terrainTreeDistance: 5000
terrainBillboardStart: 50
terrainFadeLength: 5
terrainMaxTrees: 50
vgPersistentBufferSize: 256
vgStreamingBufferSize: 512
vgPageUploadBufferSize: 64
vgPixelsPerEdge: 1
vgVertexCacheActive: 0
vgVertexCacheAutoVertexAnim: 0
vgVertexCacheMaxEntries: 32768
vgVertexCacheLoadFactor: 0.67
excludedTargetPlatforms: []
m_TextureMipmapLimitGroupNames: []
m_PerPlatformDefaultQuality:
Android: 2
Lumin: 5
@@ -229,9 +356,11 @@ QualitySettings:
Nintendo Switch: 5
PS4: 5
PSP2: 2
Server: 0
Stadia: 5
Standalone: 5
WebGL: 3
WeixinMiniGame: 2
Windows Store Apps: 5
XboxOne: 5
iPhone: 2