It would be nice to have a way to repair any damage that the player takes from the enemies, which will be the topic of this article.
Objective: Create a Health Collectible to repair damage taken by the player.
Creating a collectible for player health/repair is fairly easy since the basic framework has already been set up. In the Player script, I’ll add a public method that will be called from the Health collectible when the Player picks it up. The method I will use is below.