79206616

Date: 2024-11-20 09:49:51
Score: 1
Natty:
Report link

It makes sense because Enemy Dead State should only ever deactivate the SpriteRenderer if you wish so.

Solution 1

From here, check if EnemyDead animation is set to loop. If it is - uncheck it. It should not be looping.

Solution 2

Separate into two states:

AnyState -> EnemyDying -> EnemyDead (Has Exit Time = true)

Reasons:
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Phillip Zoghbi