public void ApplyDamage(int damage) { if (GameOver) { return; } damage = Mathf.RoundToInt(damage / Mathf.Exp(-0.005f * gm.GameScore)); CurHealth -= damage; if (CurHealth > 0) { return; } GameOver = true; CurHealth = 0; pc.GameOver(); gm.GameOver(); }