Advertisement
KorolevDmitry123

Untitled

Jul 8th, 2016
88
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. public float rot;
  9. void Update()
  10. {
  11. rot = target.transform.rotation.eulerAngles.y;
  12.  
  13. }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement