몬스터 공격 수정 테스트

This commit is contained in:
Mingu Kim
2025-02-08 23:20:38 +09:00
parent 85fae09b37
commit 5f69ad8e30
7 changed files with 179 additions and 50 deletions

View File

@@ -19,7 +19,7 @@ namespace TON
private void Update()
{
bool isMoving = false;
// bool isMoving = false;
if (Input.GetKey(KeyCode.RightArrow))
{
@@ -27,7 +27,7 @@ namespace TON
position.x += 5.0f * Time.deltaTime;
_cachedTransform.position = position;
isMoving = true;
// isMoving = true;
_spriteRenderer.flipX = false;
}
@@ -37,7 +37,7 @@ namespace TON
position.x -= 5.0f * Time.deltaTime;
_cachedTransform.position = position;
isMoving = true;
// isMoving = true;
_spriteRenderer.flipX = true;
}
@@ -47,7 +47,7 @@ namespace TON
position.y += 10.0f * Time.deltaTime;
_cachedTransform.position = position;
isMoving = true;
// isMoving = true;
_spriteRenderer.flipX = true;
}