Advertisement
rodrigofbm

Camera

Jun 7th, 2015
352
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var Seguir : Transform;
  2.  
  3.  
  4.  
  5. function Start () {
  6.  
  7. }
  8.  
  9. function LateUpdate () {
  10.  
  11.     if(Seguir){
  12.    
  13.         transform.position = Vector3.Lerp(transform.position, Seguir.position, 0.1) + new Vector3(0,0.03,-10);
  14.    
  15.     }
  16.    
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement