public override void takehit(int strength) { if (!dead) { health -= strength; if (health <= 0) { dead = true; gameObject.GetComponent <Renderer>().enabled = false; } } else { bad.takehit(strength * power); } }
public override void takehit(int strength) { bad.takehit(strength * power); }