Hi, after a few seconds this error message appears.
Maybe the problem is the A* ?
public override void OnStart()
{
navMeshAgent.enabled = true;
// use the position if it is not zero
if (targetPosition.Value != Vector3.zero) {
staticPosition = true;
navMeshAgent.destination = targetPosition.Value; <----------- error
}
// set the destination if it hasn't already been set with a static position
if (staticPosition == false) {
navMeshAgent.destination = target.Value.position; <----------- error
}
}
Maybe the problem is the A* ?
public override void OnStart()
{
navMeshAgent.enabled = true;
// use the position if it is not zero
if (targetPosition.Value != Vector3.zero) {
staticPosition = true;
navMeshAgent.destination = targetPosition.Value; <----------- error
}
// set the destination if it hasn't already been set with a static position
if (staticPosition == false) {
navMeshAgent.destination = target.Value.position; <----------- error
}
}