Checking If Player Exists

In the camera follow script, we are setting the transform without checking if the player is null. I think doing this in an update function is extremely dangerous!

Wouldn’t it be best to check if the player exists or not, for the sake of making sure that the game doesn’t blow up and sake of debug?

I’d say it depends, it might be added later in the course (I just started :slight_smile: ) but if the player is never destroyed I don’t think it would be really necessary, I think it depends on how player death will be handled. We’ll see as we go I guess.