Skip to content

Commit 86e4b24

Browse files
authored
Merge pull request #143 from Shadow-Wizard-Games/develop-player-rework
dead state of playerscript
2 parents fab1a5a + cd40f53 commit 86e4b24

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

TheOneScripting/PlayerScript.cs

+2
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,8 @@ private void UpdatePlayerState()
219219
{
220220
attachedGameObject.animator.UpdateAnimation();
221221

222+
if (currentAction == CurrentAction.DEAD) return;
223+
222224
if (Heal.state != AbilityHeal.AbilityState.ACTIVE || Dash.state != AbilityDash.AbilityState.ACTIVE)
223225
{
224226
UpdateWeaponAnimation();

0 commit comments

Comments
 (0)