Files
2023-01-02 19:59:46 +02:00

24 lines
544 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.animationFrames++;
ToIdleState(player);
}
private void ToIdleState(PlayerNetwork player)
{
if (player.animationFrames >= 160)
{
player.enter = false;
player.state = "Idle";
}
}
}