Health system for ratbots, can now stab ratbots

This commit is contained in:
2024-10-20 00:40:53 -07:00
parent d8c8e88220
commit 81b0797774
4 changed files with 135 additions and 2 deletions

View File

@@ -5,7 +5,6 @@ public class GameState : MonoBehaviour
public string state;
public uint wave = 1;
public GameObject ratbot;
void Start() {
NewWave();
}
@@ -30,6 +29,7 @@ public class GameState : MonoBehaviour
for (uint _ = 0; _ < wave; _++) {
GameObject newRatbot = Instantiate(ratbot);
newRatbot.GetComponent<Ratbot>().damageStrength = 5+wave*5;
newRatbot.GetComponent<Ratbot>().health = 5+wave*2;
}
wave++;
}