Files
David Kalatzis 9297c6f2bb Minor update
2023-01-23 18:31:58 +02:00

28 lines
647 B
C#

using UnityEngine;
public class BlockLowState : BlockParentState
{
public override void UpdateLogic(PlayerNetwork player)
{
base.UpdateLogic(player);
player.animation = "BlockLow";
player.animationFrames++;
ToIdleState(player);
}
private void ToIdleState(PlayerNetwork player)
{
if (player.stunFrames <= 0)
{
player.player.StopShakeCoroutine();
if (player.direction.y < 0)
{
EnterState(player, "Crouch");
}
else
{
EnterState(player, "Idle");
}
}
}
}