현재 체력 안바뀌는 부분 수정

This commit is contained in:
백민승_crow 2026-01-27 21:31:18 +09:00
parent cc6788d80d
commit 0d50b5d99d
2 changed files with 9 additions and 4 deletions

View File

@ -2509,15 +2509,19 @@ MonoBehaviour:
m_EditorClassIdentifier: Assembly-CSharp::Player m_EditorClassIdentifier: Assembly-CSharp::Player
currentHp: 0 currentHp: 0
maxHp: 100 maxHp: 100
maxAttackTime: 3
maxDashTime: 1
moveSpeed: 9 moveSpeed: 9
jumpSpeed: 18.2 jumpSpeed: 18.2
jumpCutMultiplier: 0.3 dashTime: 0.5
dashDistance: 5
attackBoxSize: {x: 3, y: 1} attackBoxSize: {x: 3, y: 1}
enemyLayer: enemyLayer:
serializedVersion: 2 serializedVersion: 2
m_Bits: 192 m_Bits: 192
dashTime: 0.5 groundLayer:
dashDistance: 5 serializedVersion: 2
m_Bits: 8
--- !u!4 &1052407379 stripped --- !u!4 &1052407379 stripped
Transform: Transform:
m_CorrespondingSourceObject: {fileID: 4539706167822133972, guid: ae58a5fa402b1d941b0878d356d1389d, type: 3} m_CorrespondingSourceObject: {fileID: 4539706167822133972, guid: ae58a5fa402b1d941b0878d356d1389d, type: 3}
@ -2886,7 +2890,7 @@ PrefabInstance:
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 2025971683497085228, guid: c1e04369fcd95764abcbb1a9fd356bde, type: 3} - target: {fileID: 2025971683497085228, guid: c1e04369fcd95764abcbb1a9fd356bde, type: 3}
propertyPath: m_IsActive propertyPath: m_IsActive
value: 0 value: 1
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 6964338176317010345, guid: c1e04369fcd95764abcbb1a9fd356bde, type: 3} - target: {fileID: 6964338176317010345, guid: c1e04369fcd95764abcbb1a9fd356bde, type: 3}
propertyPath: m_LocalPosition.x propertyPath: m_LocalPosition.x

View File

@ -38,6 +38,7 @@ public class Player : MonoBehaviour
private void Start() private void Start()
{ {
currentHp = maxHp;
_rigidbody = gameObject.GetComponent<Rigidbody2D>(); _rigidbody = gameObject.GetComponent<Rigidbody2D>();
} }