The player layer is set to Player Layer at place 9 :
Then this script is attached to a cinemachine free look camera :
using System.Collections;