using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ControlaCamera : MonoBehaviour {
public GameObject Jogador;
Vector3 distCompensar;
//Use this for inicialization
void Start () {
distCompensar = transform.position - Jogador.transform.position
}
//Update is called once per frame
void Update () {
transform.position = Jogador.transform.position + distCompensar;
}
}