Beispiel #1
0
 protected void Start()
 {
     AIAgentManager.registerAIAgent(this.gameObject);
     if (agent == null)
     {
         agent = GetComponent <NavMeshAgent>();
     }
     if (agent == null)
     {
         Debug.LogError(this + ":No navmesh agent in the object.");
     }
 }
Beispiel #2
0
 void Start()
 {
     AIAgentManager.registerAIAgent(gameObject);
 }