For future code pastes, always paste the code itself rather than the screenshot. I can format the code after you paste it in, if needed (or you can select the text after you paste it in and press the </> button in the edit bar. It’ll be much easier to read for us old fogeys. It’s also easier for me to quote/cut and paste specific code to comment on or change, as you’ll see below.
That’s in the current design, actually, It’s best to put your cutscene triggers far away from enemies so that the enemies don’t murder your player while you’re watching the scene!
I suspect your issue is in Start…
GameObject player; //This is the reference value that will be referenced in Disable and EnableControl
private void Start()
{
GetComponent<PlayableDirector>().played += DisableControl;
GetComponent<PlayableDirector>().stopped += EnableControl;
//Because the next line starts with the type declaration GameObject,
//a new local reference value is created which masks the global reference value
//meaning that the global player remains a null reference...
GameObject player = GameObject.FindWithTag("Player");
}
remove the GameObject from the line GameObject player = GameObject.FindWithTag(“Player”); and you should be good to go.
player = GameObject.FindWithTag("Player");