using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.AI; public class MonsterMove : MonoBehaviour { // Update is called once per frame void Update() { this.gameObject.GetComponent().SetDestination(GameObject.Find("Capsule").transform.position); } }