Advertisement
KorolevDmitry123

Untitled

Jul 9th, 2016
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. using UnityEngine;
  2. using System.Collections;
  3.  
  4. public class RotationFollower : MonoBehaviour
  5. {
  6. public GameObject target;
  7. public GameObject follower;
  8. void Update()
  9. {
  10. follower.transform.localRotation = target.transform.localRotation;
  11. }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement