diff options
Diffstat (limited to 'td/Assets/Scripts/player.cs')
-rw-r--r-- | td/Assets/Scripts/player.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/td/Assets/Scripts/player.cs b/td/Assets/Scripts/player.cs index 608d09c..a1e9d81 100644 --- a/td/Assets/Scripts/player.cs +++ b/td/Assets/Scripts/player.cs @@ -67,6 +67,10 @@ public class Player : MonoBehaviour { public void DecreaseHealth(int hp) { _playerHealth -= hp; } + + public void IncreaseHealth(int hp) { + _playerHealth += hp; + } #endregion public void SpawnTower(GameObject towerType) { |