Files
2023-01-07 23:17:55 +02:00

22 lines
513 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();
player.enter = false;
player.state = "Idle";
}
}
}