public void HandleDamage(int damage, Transform point) { _currentHealth -= damage; _barHandler.UpdateViewHealthBar(damage); if (_currentHealth <= 0) { gameObject.SetActive(false); } ShowHitEffect(point); }
public void HandleDamage(int damage, Transform point) { _currentHealth -= damage; _barHandler.UpdateViewHealthBar(damage); if (_currentHealth <= 0) { gameObject.SetActive(false); } ShowHitEffect(point); }