Attack damage scales quadratic with time until at damageStrength

This commit is contained in:
2024-10-27 00:18:18 -07:00
parent 3dd0e0f439
commit 6f5114b495
2 changed files with 9 additions and 7 deletions

View File

@@ -33,6 +33,7 @@ public class Ratbot : MonoBehaviour
// Die if health below zero
public void Damage(float hurtyAmount) {
Debug.Log(hurtyAmount);
health -= hurtyAmount;
if (health <= 0) {
Destroy(gameObject);