Advertisement
MrsMcLead

CameraController

Oct 7th, 2014
645
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #pragma strict
  2. var offset: Vector3;
  3. var sphere: GameObject;
  4.  
  5. function Start () {
  6.     offset = transform.position;
  7.  
  8. }
  9.  
  10. function Update () {
  11.  
  12.     transform.position = sphere.transform.position+offset;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement