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

24 lines
563 B
C#

using UnityEngine;
public class TauntState : State
{
public override void UpdateLogic(PlayerNetwork player)
{
if (!player.enter)
{
player.enter = true;
player.animationFrames = 0;
player.animation = "Taunt";
}
player.velocity = DemonicsVector2.Zero;
player.animationFrames++;
ToIdleState(player);
}
private void ToIdleState(PlayerNetwork player)
{
if (player.animationFrames >= 160)
{
EnterState(player, "Idle");
}
}
}