hello guys there is my problem
I find that once i install this navmesh agent in Agent then hit play the whole unity will stuck at this situation .it total can’t move on
this is my script
/*
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.AI;
public class patrol : MonoBehaviour
{
public NavMeshAgent agent;
public int i;
public Transform PatrolPoint;
public bool Test;
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
for(i=0;i<PatrolPoint.Length;){
agent.SetDestination(PatrolPoint[0].transform.position);
if(transform.position.x==PatrolPoint_.transform.position.x&&transform.position.z==PatrolPoint*.transform.position.z){*_
Test=true;
i++;
}
}
}
}