//Jimmy Vegas Unity Tutorial //This script will set up your NavMesh using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.AI; public class SpiderBossAI : MonoBehaviour { public GameObject TheDestination; NavMeshAgent TheAgent; void Start () { TheAgent = GetComponent(); } void Update () { TheAgent.SetDestination(TheDestination.transform.position); } }