.
This commit is contained in:
parent
5b234cfb7d
commit
fb3b35e984
@ -65,12 +65,14 @@ public class MonsterController : MonoBehaviour
|
||||
{
|
||||
case State.IDLE:
|
||||
agent.isStopped = true;
|
||||
animator.SetBool("IsTrace", false);
|
||||
break;
|
||||
|
||||
case State.TRACE:
|
||||
// 추적 시작
|
||||
agent.SetDestination(playerTr.position);
|
||||
agent.isStopped = false;
|
||||
animator.SetBool("IsTrace", true);
|
||||
break;
|
||||
|
||||
case State.ATTACK:
|
||||
|
Loading…
Reference in New Issue
Block a user