- Home /
Answer by BuzzyRoboYT · Jan 17 at 05:51 PM
Where are you calling takeDamage? it might be a problem there.
Answer by privatecontractor · Jan 19 at 12:58 PM
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...
}