how to detach the camera from the player after death unity

Code Example - how to detach the camera from the player after death unity

                
                        if (player == null) // Call this at the begnning of your camera script 
    return;              //and watch as your problems melt away.