Exemple #1
0
 public static void worldPointClicked(Vector3 pos)
 {
     if (activePanda != null)
     {
         Vector3 target = new Vector3(pos.x, 0, pos.z);
         activePanda.GetComponent <NavMeshAgent>().SetDestination(target);
         activePanda = null;
     }
 }