In creation of a hearts management system, I have come across a bug. When a player runs into a trap, it decreases the player's health as it should. There are only two smoll bugs that happen AFTER the player runs into a trap
One of the bugs is that the death animation doesn't happen like it used to. The other bug is when the player resets to their original position, they can switch directions, but are unable to move.
I manage the animations in my PlayerMovement Script.
https://gdl.space/orupekivey.cs
The LivesManager Script manages whenever I take damage:
https://gdl.space/yoyuzosapo.cs
And The GameManager Script manages what to do when a life is taken:
https://gdl.space/ipapecimuw.cs
Any ideas of what I would need to do differently with this so that the death animation happens and my player can move after losing a life?