title: Unity Multiple navmesh agents .
body: <p>Hello so im working on a RTS game so i will controll more then 1 minion but wen i trie and add another minion and command them both they go to the point and then they look at each other like this <a href="https://imgur.com/a/uHwjG" rel="nofollow noreferrer">http://imgur.com/a/uHwjG</a>. 
  the code for the minions to move is this :</p>
  
  <pre><code>using System.Collections;
  using System.Collections.Generic;
  using UnityEngine;
  using UnityEngine.AI;
  
  public class moveTest : MonoBehaviour {
  
      NavMeshAgent navAgent;
  
  
  
      // Use this for initialization
      void Start () {
          navAgent = GetComponent&lt;NavMeshAgent&gt;();
  
  
      }
  
      // Update is called once per frame
      void Update () {
  
          move();
  
      }
      void move()
      {
          RaycastHit hit;
          Ray ray = Camera.main.ScreenPointToRay(Input.mousePosition);
          if (Input.GetMouseButtonDown(1))
          {
              if (Physics.Raycast(ray, out hit, 1000))
              {
                  navAgent.SetDestination(hit.point);
  
              }
  
          }
      }
  }
  </code></pre>