Skip to content

Instantly share code, notes, and snippets.

@Ratstail91
Last active October 8, 2018 19:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ratstail91/605646bd72f94aa9e75b1bead0d0dced to your computer and use it in GitHub Desktop.
Save Ratstail91/605646bd72f94aa9e75b1bead0d0dced to your computer and use it in GitHub Desktop.
Vector3 targetVector = gameObjectArray[waypoint].transform.position;
_navMeshAgent.SetDestination(targetVector);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment