"SetDestination" can only be called on an active agent that has been placed on a NavMesh.
UnityEngine.AI.NavMeshAgent:SetDestination(Vector3)
Inimigo:Start() (at Assets/Script/Inimigo.cs:14)
Para mim Estou tendo este erro ai ... sendo que meu código ficou assim:
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
public class Inimigo : MonoBehaviour {
// Use this for initialization
void Start () {
UnityEngine.AI.NavMeshAgent agente = GetComponent<UnityEngine.AI.NavMeshAgent>();
GameObject fimDoCaminho = GameObject.Find ("FimDoCaminho");
Vector3 posicaoDoFimDoCaminho = fimDoCaminho.transform.position;
agente.SetDestination (posicaoDoFimDoCaminho);
}
// Update is called once per frame
void Update () {
}
}