示例#1
0
 public void TeleportVillain(Vector3 position, Vector3 pivet, int waypointIndex)
 {
     villainNav.enabled = false;
     villain.position   = position;
     villain.LookAt(pivet);
     villainNav.enabled = true;
     villainAI.ChangeWaypointIndex(waypointIndex);
     villainAI.OverloadPatrolState();
 }