Untitled

Anonymous
plain_text
03/09/2025 5:40 PM
400 B
17
Indexable
using UnityEngine;
using UnityEngine.AI;
using Unity;

public class EnemyAI : MonoBehaviour
{

    NavMeshAgent nm;
    public Transform target;


    void Start()
    {
        nm = GetComponent<NavMeshAgent>();
    }


    void Update()
    {
        nm.SetDestination(target.position);

    }
}
Editor is loading...
Leave a Comment