public void TakeDamage(float damage) { if (isDamageable) { playerHealth -= damage; fillAmount = playerHealth / 100; if (playerHealth <= 0) { charController.Die(); } else { StartCoroutine(FadePlayer()); } } }