Ui 레이아웃 수정

This commit is contained in:
aube.lee
2025-02-03 00:56:45 +09:00
parent 2169242ec7
commit 40afaaa868
7 changed files with 206 additions and 83 deletions

View File

@@ -20,15 +20,15 @@ namespace TON
private void Update()
{
bool isMoving = false;
if (Input.GetKey(KeyCode.RightArrow))
{
var position = _cachedTransform.position;
position.x += 5.0f * Time.deltaTime;
_cachedTransform.position = position;
isMoving = true;
_spriteRenderer.flipX = false;
}
if (Input.GetKey(KeyCode.LeftArrow))
@@ -36,9 +36,9 @@ namespace TON
var position = _cachedTransform.position;
position.x -= 5.0f * Time.deltaTime;
_cachedTransform.position = position;
isMoving = true;
_spriteRenderer.flipX = true;
}
if (Input.GetKey(KeyCode.UpArrow))
@@ -46,13 +46,13 @@ namespace TON
var position = _cachedTransform.position;
position.y += 10.0f * Time.deltaTime;
_cachedTransform.position = position;
isMoving = true;
_spriteRenderer.flipX = true;
}
_anmator.SetBool("IsMoving", isMoving);
// _anmator.SetBool("IsMoving", isMoving);
}
}
}