Health Bar complete

health bar now gets destroyed when players die, and get created when players spawn/respawn. This fixes issue where health bar stays on screen after player dies.
This commit is contained in:
djkellerman
2025-04-17 17:36:23 -04:00
parent 98f0713ebe
commit 12d740288a
5 changed files with 996 additions and 19 deletions

View File

@@ -234,17 +234,6 @@ Transform:
- {fileID: 1919996325}
m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &425968085 stripped
MonoBehaviour:
m_CorrespondingSourceObject: {fileID: 3857858006081045191, guid: e3c570bb90d434e809aca2a339dadf5d, type: 3}
m_PrefabInstance: {fileID: 6442071445436727402}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: a80b536f823e50142b142b4e0b64ea97, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!1001 &612903695
PrefabInstance:
m_ObjectHideFlags: 0
@@ -4559,7 +4548,7 @@ PrefabInstance:
- target: {fileID: 2396754106601062846, guid: e3c570bb90d434e809aca2a339dadf5d, type: 3}
propertyPath: healthBarManager
value:
objectReference: {fileID: 425968085}
objectReference: {fileID: 0}
- target: {fileID: 2396754106601062846, guid: e3c570bb90d434e809aca2a339dadf5d, type: 3}
propertyPath: hatSpawnPositions.Array.size
value: 5
@@ -4775,6 +4764,7 @@ PrefabInstance:
m_RemovedComponents: []
m_RemovedGameObjects:
- {fileID: 4148327129846918965, guid: e3c570bb90d434e809aca2a339dadf5d, type: 3}
- {fileID: 8079215911535814924, guid: e3c570bb90d434e809aca2a339dadf5d, type: 3}
m_AddedGameObjects: []
m_AddedComponents:
- targetCorrespondingSourceObject: {fileID: 1757615392802054825, guid: e3c570bb90d434e809aca2a339dadf5d, type: 3}

View File

@@ -2748,7 +2748,7 @@ MonoBehaviour:
Time Left! text\n#Obstacle course end only works on correct gamemode\n#Obstacle
course end for mountain\n#Correct time limits for keep away maps\n\n*needs help*
Respawn after game over (ALL GAMEMODES)\n\nWill try to complete: \nObstacle course
flag\nHealth bar persists after death\n"
flag\n#Health bar persists after death\n"
m_isRightToLeft: 0
m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}