//Jimmy Vegas Unity Tutorial //This script is for your zombie walking using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.AI; public class SimpleZombieMove : MonoBehaviour { public GameObject theDestination; NavMeshAgent theAgent; void Start() { theAgent = GetComponent(); } void Update() { theAgent.SetDestination(theDestination.transform.position); } }