public void takeDamage(float phDamage, float maDamage) { if (heroClass.isAlive()) { heroClass.takeDamage(actionMeter, phDamage, maDamage, health); audioSource.PlayOneShot(hitSound); } }