Skip to content

Commit cd40f53

Browse files
committed
dead state of playerscript
1 parent d476201 commit cd40f53

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)