2012년 8월 16일 목요일

unity action script 메모

이동을 멈추게 하고 싶을떄

naviMeshAgent.destination = transform.position;

이런 식으로는 의도하는대로 작동하지 않는다.

naviMeshAgent.ResetPath();

를 사용할것.

다시 움직이게 하려면 destination을 다시 지정해주면 된다.