How to stop camera from moving when the player dies (2D)?

hi guys,

Maybe a noob question but when my player dies it falls backwards. My camera keeps track of the player so it moves with it. How can i let it stop moving when de player dies. (My game is similair to flappyBird).


Is the camera a child object of the player? Or does it use a script to follow the player?

If it’s the first, change it to a script and make camera NOT a child of player. If it’s the latter, change the script to stop moving to player position when the player is dead.