Objective: If the player dies, reload the active scene to restart a level. — Many games have a restart level feature. In this instance, when the player dies, we want the player to be able to press the R key in order to restart the level. We have Restart Game text as a child of the Canvas. Uncheck the Text Mesh Pro-Text (UI) component…