Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- using System.Collections;
- using UnityEngine.UI;
- public class CameraZoom : MonoBehaviour
- {
- public GameObject playah;
- public GameObject cameraPoint;
- public UnityEngine.UI.Text camZoomText;
- public float smoothTime = 1.5f;
- private float yVelocity = 0f;
- private Vector3 camVelocity = Vector3.zero;
- private float ballVelocityX;
- private float ballVelocityY;
- private float ballVelocity;
- void Start ()
- {
- }
- void Update ()
- {
- transform.position = new Vector3(playah.transform.position.x, playah.transform.position.y);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement