Add CameraShake component and integrate with Health system; implement shake effect on damage taken

This commit is contained in:
2025-07-12 16:58:42 +02:00
parent 56592fa7ad
commit 4b68446ea9
6 changed files with 965 additions and 2 deletions

40
Assets/CameraShake.asset Normal file
View File

@@ -0,0 +1,40 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: b7f59e54f2bfd184b9dd451a678d089b, type: 3}
m_Name: CameraShake
m_EditorClassIdentifier:
PositionNoise:
- X:
Frequency: 14
Amplitude: 2
Constant: 0
Y:
Frequency: 14
Amplitude: 2
Constant: 0
Z:
Frequency: 0
Amplitude: 0
Constant: 0
OrientationNoise:
- X:
Frequency: 0
Amplitude: 0
Constant: 0
Y:
Frequency: 0
Amplitude: 0
Constant: 0
Z:
Frequency: 1
Amplitude: 2
Constant: 0