Advertisement
kadyr

Untitled

Oct 10th, 2021
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. using UnityEngine;
  2.  
  3. class CameraFollower:MonoBehaivour
  4. {
  5. public Transform player;
  6. public Vector3 offset;
  7.  
  8. private void Update()
  9. {
  10. transform.position = player.transform.position + offset;
  11. }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement