Advertisement
Guest User

Untitled

a guest
Aug 31st, 2015
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. using UnityEngine;
  2. using System.Collections;
  3.  
  4. public class RifleController : MonoBehaviour {
  5.  
  6. public Camera Camera;
  7.  
  8. // Update is called once per frame
  9. void Update () {
  10. transform.rotation = Camera.transform.rotation;
  11. }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement