using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.AI;
public class Enemy : MonoBehaviour
{
[SerializeField] Transform Target;
[SerializeField] NavMeshAgent AI;
// Update is called once per frame
void Update()
{
AI.SetDestination(Target.position);
}
}