Enemy AI movement - Unity Answers
answers.unity.com › enemy-ai-movement-1Enemy AI movement - Unity Answers. using UnityStandardAssets.Characters.ThirdPerson; public GameObject target; public Transform targetPos; void Start () {. Enemy = GetComponent<ThirdPersonCharacter> (); agent = GetComponent<NavMeshAgent> (); target = GameObject.Find("gameobject to be default target"); targetPos = target.transform.position;