Advertisement
Guest User

Untitled

a guest
Oct 14th, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4.  
  5. public class FollowRotation : MonoBehaviour {
  6. public Transform target;
  7.  
  8. void Update ()
  9. {
  10. transform.localRotation = target.localRotation;
  11. }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement