- Attach this script to the main camera
- In the unity inspector fill in the name of the character you are following in the goLookAt field.
And that's it!
The script will always follow at a set distance from the player.
Once again, you can view the code for this by clicking this link here.
Leave a comment or question if you have one!
No comments:
Post a Comment
Please no spam, and no links unless they directly relate to the content of the page.