using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Camin : MonoBehaviour
{
public Transform player;
private Vector3 offestPosition = new Vector3(0, 0, 0);
// Start is called before the first frame update
void Start()
{
offestPosition = transform.position - player.position;
offestPosition = new Vector3(0, 0, -10f);
}
// Update is called once per frame
void Update()
{
transform.position = offestPosition + player.position;
}
}