Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- class CameraFollower:MonoBehaivour
- {
- public Transform player;
- public Vector3 offset;
- private void Update()
- {
- transform.position = player.transform.position + offset;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement