Advertisement
ealbinu

followCamera_X

Apr 3rd, 2013
290
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #pragma strict
  2.  
  3. var player          :       GameObject;
  4. var depthOffset     :       int         =   -10;
  5. var verticalOffset  :       int         =   0;
  6.  
  7. function Update () {
  8.     transform.position.z = depthOffset;
  9.     transform.position.y = verticalOffset;
  10.     transform.position.x = player.transform.position.x;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement