From dfc8697f1f3b6b8de9ae0830b48f6d1f6e327818 Mon Sep 17 00:00:00 2001 From: yunmin <84099396+zabd0ng@users.noreply.github.com> Date: Wed, 29 May 2024 16:30:15 +0900 Subject: [PATCH] =?UTF-8?q?=EC=9D=B8=EA=B2=8C=EC=9E=84=20=ED=83=B1?= =?UTF-8?q?=ED=81=AC=20=EB=B0=A9=ED=96=A5=20=EB=9E=9C=EB=8D=A4=ED=99=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/2Scripts/Tank/TankHandler.cs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Assets/2Scripts/Tank/TankHandler.cs b/Assets/2Scripts/Tank/TankHandler.cs index 0b6f00a39b..79825c0ab9 100644 --- a/Assets/2Scripts/Tank/TankHandler.cs +++ b/Assets/2Scripts/Tank/TankHandler.cs @@ -71,6 +71,8 @@ private void Awake() tankUIHandler = GetComponent(); // 탱크 UI 핸들러 컴포넌트 할당 rayOffset = new Vector3(0.15f,0,0); powerCoefficient = InGameManager.IT.powerCoefficient; + direction = Random.Range(0f, 1f) >= 0.5f ? + 1 : -1; } public virtual void Start() @@ -107,13 +109,13 @@ private void Update() } if (Input.GetKey(KeyCode.LeftArrow)) // 카메라 왼쪽으로 이동 - InGameManager.IT.CamMove(-0.15f, 0); + InGameManager.IT.CamMove(-0.2f, 0); else if (Input.GetKey(KeyCode.RightArrow)) // Right - InGameManager.IT.CamMove(0.15f, 0); + InGameManager.IT.CamMove(0.2f, 0); else if (Input.GetKey(KeyCode.UpArrow)) // Up - InGameManager.IT.CamMove(0, 0.15f); + InGameManager.IT.CamMove(0, 0.2f); else if (Input.GetKey(KeyCode.DownArrow)) // Up - InGameManager.IT.CamMove(0, -0.15f); + InGameManager.IT.CamMove(0, -0.2f); return; // 줌인 중에는 탱크 못움직이게 } else if (Input.GetKeyUp(KeyCode.Z)) {