Advertisement
Guest User

Untitled

a guest
Mar 6th, 2015
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using UnityEngine;
  2. using System.Collections;
  3. using UnityEngine.UI;
  4.  
  5. public class CameraZoom : MonoBehaviour
  6. {
  7.     public GameObject playah;
  8.     public GameObject cameraPoint;
  9.  
  10.     public UnityEngine.UI.Text camZoomText;
  11.  
  12.     public float smoothTime = 1.5f;
  13.     private float yVelocity = 0f;
  14.     private Vector3 camVelocity = Vector3.zero;
  15.     private float ballVelocityX;
  16.     private float ballVelocityY;
  17.     private float ballVelocity;
  18.  
  19.  
  20.     void Start ()
  21.     {
  22.        
  23.     }
  24.    
  25.     void Update ()
  26.     {
  27.         transform.position = new Vector3(playah.transform.position.x, playah.transform.position.y);
  28.  
  29.     }
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement