Attack damage scales quadratic with time until at damageStrength
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user