You've already forked Darklings-FightingGame
mirror of
https://github.com/izzy2lost/Darklings-FightingGame.git
synced 2026-03-10 11:35:19 -07:00
17 lines
490 B
C#
17 lines
490 B
C#
public class GrabbedState : State
|
|
{
|
|
public override void UpdateLogic(PlayerNetwork player)
|
|
{
|
|
if (!player.enter)
|
|
{
|
|
player.otherPlayer.enter = false;
|
|
player.otherPlayer.state = "Throw";
|
|
player.enter = true;
|
|
player.animationFrames = 0;
|
|
player.player.StopShakeCoroutine();
|
|
}
|
|
player.velocity = DemonicsVector2.Zero;
|
|
player.animation = "HurtAir";
|
|
player.animationFrames++;
|
|
}
|
|
} |