Esempio n. 1
0
 private void Start()
 {
     navMesh     = NavMesh2D.instance;
     Destination = null;
     if (navMesh == null)
     {
         Debug.LogError("The scene does not contain a NavMesh2D. No navigation possible!");
         return;
     }
     navMesh.RegisterAgent(this);
 }