79153291

Date: 2024-11-03 17:43:00
Score: 1.5
Natty:
Report link

I needed to Cut the Code Die() is here

    public void TakeDamage(int damageAmount)
{
    currentHealth -= damageAmount;

    // Check if health is less than or equal to 0
    if (currentHealth <= 0)
    {
        Die();
    }
    else
    {
        // Trigger hit animation
        anim.SetTrigger("hit"); // Ensure this trigger is correctly set in the Animator
    }
}
Reasons:
  • Blacklisted phrase (0.5): I need
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Das Shiro