Camera follow player's rotation

Hello! I’m learning Unity and I’d like the camera to follow my player’s rotation so the camera it’s always at its back. Here’s the code I’m using for the camera to follow my player’s movements. What do I have to change?

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class CamaraController : MonoBehaviour {

	
	public GameObject jugador;

	
	private Vector3 offset;

	// Use this for initialization
	void Start () {
		
	
		offset = transform.position - jugador.transform.position;

	}
	
	
	void LateUpdate () {
		
		transform.position = jugador.transform.position + offset;

	}

}

Simply make the camera to the player’s child or create a transform in player and lerp camera to the transform and look at the player.

Basically drag and drop the camera onto the player in the editor.

The better thing to do is the transform.LookAt(player);:

 using System.Collections;
 using System.Collections.Generic;
 using UnityEngine;
 
 public class CamaraController : MonoBehaviour {
 
     
     public GameObject jugador;
 
     
     private Vector3 offset;
 
     // Use this for initialization
     void Start () {
         
     
         offset = transform.position - jugador.transform.position;
 
     }

     void Update () {

     transform.LookAt(jugador);

     }

     void LateUpdate () {
         
         transform.position = jugador.transform.position + offset;
 
     }
 
 }