From 12b8646159169c082ae7197ed7af4bbcf1d9e2cb Mon Sep 17 00:00:00 2001 From: Jakob Stendahl Date: Tue, 17 Oct 2017 22:27:37 +0200 Subject: Added an actual cheat menu --- td/Assets/Scripts/player.cs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'td/Assets/Scripts/player.cs') 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) { -- cgit v1.2.3