Skip to content

Commit

Permalink
주석추가_3
Browse files Browse the repository at this point in the history
주석추가_3
  • Loading branch information
woojin211 committed Jun 1, 2024
1 parent 8b38230 commit 26339ae
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Assets/2Scripts/CameraHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ private IEnumerator ZoomCoroutine(float value)
// orthographicSize와 value의 차이가 0.01f보다 큰 동안 반복
while (Math.Abs(_camera.m_Lens.OrthographicSize - value) > 0.01f)
{
// Ortho방식으로 줌인
_camera.m_Lens.OrthographicSize = Mathf.MoveTowards(_camera.m_Lens.OrthographicSize, value, zoomSpeed * Time.deltaTime); // 카메라의 orthographicSize를 value로 이동

yield return null;
Expand Down

0 comments on commit 26339ae

Please sign in to comment.