private void ProcessHit(JH_DamageDealer damageDealer) { health -= damageDealer.GetDamage(); damageDealer.Hit(); if (health <= 0) { Destroy(gameObject); FindObjectOfType <JH_Level>().LoadGameOver(); } }
private void ProcessHit(JH_DamageDealer damageDealer) { health -= damageDealer.GetDamage(); damageDealer.Hit(); }