Files

23 lines
651 B
C#
Raw Normal View History

2022-12-26 03:47:56 +02:00
public class DeathState : State
{
public override void UpdateLogic(PlayerNetwork player)
{
if (!player.enter)
{
player.enter = true;
player.animationFrames = 0;
player.player.StopShakeCoroutine();
2023-01-01 04:39:49 +02:00
GameplayManager.Instance.RoundOver(false);
2023-01-02 19:59:46 +02:00
GameSimulation.IntroFrame = 360;
GameSimulation.Run = false;
2023-01-01 04:39:49 +02:00
player.health = 1;
2022-12-26 03:47:56 +02:00
}
player.animation = "Knockdown";
player.animationFrames++;
2023-01-02 19:59:46 +02:00
if (player.animationFrames >= 370)
{
player.enter = false;
player.state = "Idle";
}
2022-12-26 03:47:56 +02:00
}
}