add: Player script with hp

add: player death handling and OnLevelFailed event
This commit is contained in:
KOSMOGOR
2025-04-25 13:40:23 +03:00
parent 202cdb5702
commit dc6707f2a9
9 changed files with 75 additions and 7 deletions
+15
View File
@@ -251,6 +251,7 @@ GameObject:
- component: {fileID: 7857072580326449292}
- component: {fileID: 1437407097293080706}
- component: {fileID: 8985924327125149956}
- component: {fileID: 3824427059318413399}
- component: {fileID: 397169322893853401}
- component: {fileID: 1198108720433238150}
- component: {fileID: 3263211181679880648}
@@ -384,6 +385,20 @@ Rigidbody:
m_Interpolate: 0
m_Constraints: 80
m_CollisionDetection: 0
--- !u!114 &3824427059318413399
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 9016311960615966999}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: f9b2638aeb16f76429ff062f38f6d0be, type: 3}
m_Name:
m_EditorClassIdentifier:
maxHp: 100
hp: 0
--- !u!114 &397169322893853401
MonoBehaviour:
m_ObjectHideFlags: 0