From b862da2a483c07bfbc104769b91b59419a585aa5 Mon Sep 17 00:00:00 2001 From: Mingu Kim Date: Thu, 20 Feb 2025 16:00:33 +0900 Subject: [PATCH] =?UTF-8?q?=EB=AA=AC=EC=8A=A4=ED=84=B0=20IsDetect=EA=B0=80?= =?UTF-8?q?=20false=EB=90=98=EB=8A=94=20=EC=BD=94=EB=93=9C=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Assets/Gameton/Scripts/Monster/Eyesight.cs | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/Gameton-06/Assets/Gameton/Scripts/Monster/Eyesight.cs b/Gameton-06/Assets/Gameton/Scripts/Monster/Eyesight.cs index f52d4e2d..6d8a05b8 100644 --- a/Gameton-06/Assets/Gameton/Scripts/Monster/Eyesight.cs +++ b/Gameton-06/Assets/Gameton/Scripts/Monster/Eyesight.cs @@ -16,21 +16,15 @@ namespace TON if (other.CompareTag("Player")) { _monsterBase.IsDetect = true; - - // _monsterBase.SetTransition(new MonsterSkillState()); - // - // Debug.Log("감지됨"); - } } private void OnTriggerExit2D(Collider2D other) { - _monsterBase.IsDetect = false; - // - // _monsterBase.SetTransition(new IdleState()); - // - // Debug.Log("감지 벗어남"); + if (other.CompareTag("Player")) + { + _monsterBase.IsDetect = false; + } } } }