Skip to content

Instantly share code, notes, and snippets.

@daniele-quero
Created November 10, 2022 08:01
Show Gist options
  • Save daniele-quero/3794ec6b4787657bbc4029400f365ad2 to your computer and use it in GitHub Desktop.
Save daniele-quero/3794ec6b4787657bbc4029400f365ad2 to your computer and use it in GitHub Desktop.
void Update()
{
_lineRenderer.SetPosition(0, transform.position);
_lineRenderer.SetPosition(1, target.transform.position);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment