Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- using System.Collections;
- public class CameraFollow : MonoBehaviour {
- public Transform Seguir;
- public float VelocidadeCamera;
- void LateUpdate () {
- if(Seguir){
- transform.position = Vector3.Lerp(Seguir.transform.position, Seguir.position, VelocidadeCamera * Time.deltaTime) + new Vector3(0.8f,0.4f,0);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement