public void TakeDamage(int amount) { currentHealth -= amount; UIEventHandler.DamageTaken(currentHealth); Debug.Log(amount); if (currentHealth <= 0) { Die(); } }
public void TakeDamage(int amount) { currentHealth -= amount; UIEventHandler.DamageTaken(currentHealth); Debug.Log(amount); if (currentHealth <= 0) { Die(); } }