Character don't die

191312-capturar.png

Where are you calling takeDamage? it might be a problem there.

Hi @unity_257072C9600122520829,

(1) Check are you receiving this Debug.Log (“Enemy is dead”) in console.

If yes:

(2) Check is animator receiving bool “isDead”…

if no: Need to check where TakeDamage void is calling…

If Animator receiving bool “isDead”: check is animator not animating (enabling) components attached to GameObject.

Also consider: calling event void from your animator script, when animation finishing instead:


public void DeadAniamtionFinished()
{
   //TODO: dissabling and pushing bac to Quene or Destorying...
}