I have a script called CameraRot.cs and I want to make the camera follow the square without them sharing the rotation values. How can I fix this?
public class CameraRot : MonoBehaviour
{
public GameObject player;
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
transform.position = player.transform.position;
}
}