public void ReactToHit(float k) { if (ei.hp <= 0) { ei.Death(); } ei.hp -= k * 0.1f * ei.maxhp; Debug.Log("Health:" + ei.hp); }
public void ReactToHit(float k) { if (ei.hp <= 0) { ei.Death(); } ei.hp -= k * 0.1f * ei.maxhp; Debug.Log("Health:" + ei.hp); }