Essentially the checkpoints are the safe spots somewhat close to the damaging obstacle.
Implement the prefab of checkpoint and write the code to teleport the player to it in case it has taken damage.
Function of teleportation should be used in OnDamageTaken function of PlayerController script
Essentially the checkpoints are the safe spots somewhat close to the damaging obstacle. Implement the prefab of checkpoint and write the code to teleport the player to it in case it has taken damage. Function of teleportation should be used in OnDamageTaken function of PlayerController script