From 26339aec9f13e9b7276b10b9c7d7ebee6c52d945 Mon Sep 17 00:00:00 2001 From: woojin211 Date: Sun, 2 Jun 2024 00:01:48 +0900 Subject: [PATCH] =?UTF-8?q?=EC=A3=BC=EC=84=9D=EC=B6=94=EA=B0=80=5F3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 주석추가_3 --- Assets/2Scripts/CameraHandler.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Assets/2Scripts/CameraHandler.cs b/Assets/2Scripts/CameraHandler.cs index 655e94fcca..85c6ba89e3 100644 --- a/Assets/2Scripts/CameraHandler.cs +++ b/Assets/2Scripts/CameraHandler.cs @@ -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;