Make a Player Invincible in Unity
Your player may pick up a power up so that they are temporarily invincible. Or you may want your player to have temporary invincibility right after they are hit by an enemy to balance gameplay. Here’s how to make a player invincible in Unity. Make a player invincible: Player script: make a bool variable to…