This commit is contained in:
LeeJaeHyun 2024-09-12 17:03:44 +09:00
parent 5b234cfb7d
commit fb3b35e984

View File

@ -65,12 +65,14 @@ public class MonsterController : MonoBehaviour
{ {
case State.IDLE: case State.IDLE:
agent.isStopped = true; agent.isStopped = true;
animator.SetBool("IsTrace", false);
break; break;
case State.TRACE: case State.TRACE:
// 추적 시작 // 추적 시작
agent.SetDestination(playerTr.position); agent.SetDestination(playerTr.position);
agent.isStopped = false; agent.isStopped = false;
animator.SetBool("IsTrace", true);
break; break;
case State.ATTACK: case State.ATTACK: